gmarco <[email protected]> added the comment:
I hope indentation and spaces are now correct. I used tools/patcheck
also before but it says nothing else than :
patCHeck 1e10.0
This tool is intended to help a human check/review patches it is very
far from
being free of false positives and negatives, its output are just hints
of what
may or may not be bad. When you use it and it misses something or
detects
something wrong, fix it and send a patch to the ffmpeg-dev ML
License:GPL Autor: Michael Niedermayer
Missing changelog entry (ignore if minor change)
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2012>
________________________________________________
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index f550c6a..fe8c114 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 {