diff options
author | Marco Gittler <marco@gitma.de> | 2011-01-25 18:07:34 -0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-28 03:15:32 +0100 |
commit | 5f58927baf704d3fbf4d082b8dce41af8a441dff (patch) | |
tree | a8ed7e8020cae7daf843ae95f7b96674efdc5382 /libavcodec | |
parent | 4c9bfe3e4e28cad1e686dda68ba46094df26f1e3 (diff) | |
download | ffmpeg-5f58927baf704d3fbf4d082b8dce41af8a441dff.tar.gz |
Pass field order flag to libx264
Signed-off-by: Jason Garrett-Glaser <jason@x264.com>
(cherry picked from commit b09f5482854f9b4a139b1401d196b26db11dd10f)
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libx264.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 0dad5cd567..85ef38c6b0 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -105,6 +105,10 @@ static int X264_frame(AVCodecContext *ctx, uint8_t *buf, frame->pict_type == FF_P_TYPE ? X264_TYPE_P : frame->pict_type == FF_B_TYPE ? X264_TYPE_B : X264_TYPE_AUTO; + if (x4->params.b_tff != frame->top_field_first) { + x4->params.b_tff = frame->top_field_first; + x264_encoder_reconfig(x4->enc, &x4->params); + } } do { |