[FFmpeg-cvslog] avfilter/vf_tinterlace: Fix output top field first flag for MODE_INTERLACEX2

Michael Niedermayer git at videolan.org
Sat Nov 15 02:51:08 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 14 00:04:51 2014 +0100| [05e0ea60507d3bc7d13324130ccd9032f921c11d] | committer: Michael Niedermayer

avfilter/vf_tinterlace: Fix output top field first flag for MODE_INTERLACEX2

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=05e0ea60507d3bc7d13324130ccd9032f921c11d
---

 libavfilter/vf_tinterlace.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c
index 7397beb..4ce69da 100644
--- a/libavfilter/vf_tinterlace.c
+++ b/libavfilter/vf_tinterlace.c
@@ -342,6 +342,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *picref)
             return AVERROR(ENOMEM);
         av_frame_copy_props(out, next);
         out->interlaced_frame = 1;
+        out->top_field_first = !tff;
 
         if (next->pts != AV_NOPTS_VALUE && cur->pts != AV_NOPTS_VALUE)
             out->pts = cur->pts + next->pts;



More information about the ffmpeg-cvslog mailing list