Use the height parameter when configuring h264enc

This commit is contained in:
Brian Fulkerson 2015-03-07 12:08:56 +00:00
parent 4cbd6a41f0
commit 7f0d898b81

View File

@ -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;