[FFmpeg-cvslog] lavfi/mp: try to pass interlaced & tff flags

Paul B Mahol git at videolan.org
Wed May 22 22:30:20 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed May 22 20:25:54 2013 +0000| [1f02927d288cd2ef3ac8ce470c5901032d6faf34] | committer: Paul B Mahol

lavfi/mp: try to pass interlaced & tff flags

This makes mp=softpulldown actually useful.

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavfilter/vf_mp.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_mp.c b/libavfilter/vf_mp.c
index 0f4a113..b0df5c7 100644
--- a/libavfilter/vf_mp.c
+++ b/libavfilter/vf_mp.c
@@ -806,7 +806,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
     memcpy(mpi->planes, inpic->data,     FFMIN(sizeof(inpic->data)    , sizeof(mpi->planes)));
     memcpy(mpi->stride, inpic->linesize, FFMIN(sizeof(inpic->linesize), sizeof(mpi->stride)));
 
-    //FIXME pass interleced & tff flags around
+    if (inpic->interlaced_frame)
+        mpi->fields |= MP_IMGFIELD_INTERLACED;
+    if (inpic->top_field_first)
+        mpi->fields |= MP_IMGFIELD_TOP_FIRST;
+    if (inpic->repeat_pict)
+        mpi->fields |= MP_IMGFIELD_REPEAT_FIRST;
 
     // mpi->flags|=MP_IMGFLAG_ALLOCATED; ?
     mpi->flags |= MP_IMGFLAG_READABLE;



More information about the ffmpeg-cvslog mailing list