From 7f0d898b81bc210d6063db0d1a265b12155cda3d Mon Sep 17 00:00:00 2001 From: Brian Fulkerson Date: Sat, 7 Mar 2015 12:08:56 +0000 Subject: [PATCH] Use the height parameter when configuring h264enc --- h264enc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h264enc.go b/h264enc.go index 1947591..3f0274d 100644 --- a/h264enc.go +++ b/h264enc.go @@ -29,7 +29,7 @@ import ( m->c = avcodec_find_encoder(CODEC_ID_H264); m->ctx = avcodec_alloc_context3(m->c); m->ctx->width = m->w; - m->ctx->height = m->w; + m->ctx->height = m->h; m->ctx->bit_rate = m->bitrate; m->ctx->pix_fmt = m->pixfmt; m->ctx->flags |= CODEC_FLAG_GLOBAL_HEADER;