Merge pull request #5 from bfulkers/master
Use the height parameter when configuring h264enc
This commit is contained in:
commit
c406dab4af
@ -29,7 +29,7 @@ import (
|
|||||||
m->c = avcodec_find_encoder(CODEC_ID_H264);
|
m->c = avcodec_find_encoder(CODEC_ID_H264);
|
||||||
m->ctx = avcodec_alloc_context3(m->c);
|
m->ctx = avcodec_alloc_context3(m->c);
|
||||||
m->ctx->width = m->w;
|
m->ctx->width = m->w;
|
||||||
m->ctx->height = m->w;
|
m->ctx->height = m->h;
|
||||||
m->ctx->bit_rate = m->bitrate;
|
m->ctx->bit_rate = m->bitrate;
|
||||||
m->ctx->pix_fmt = m->pixfmt;
|
m->ctx->pix_fmt = m->pixfmt;
|
||||||
m->ctx->flags |= CODEC_FLAG_GLOBAL_HEADER;
|
m->ctx->flags |= CODEC_FLAG_GLOBAL_HEADER;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user