summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_mp.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-05-22 20:25:54 +0000
committerPaul B Mahol <onemda@gmail.com>2013-05-22 20:30:09 +0000
commit1f02927d288cd2ef3ac8ce470c5901032d6faf34 (patch)
tree3ceab20460353a9b8c80d4948270158a52bbc09c /libavfilter/vf_mp.c
parent91b461459a5dea7e032d6a16ad18c6b9dc188a2e (diff)
downloadffmpeg-streaming-1f02927d288cd2ef3ac8ce470c5901032d6faf34.zip
ffmpeg-streaming-1f02927d288cd2ef3ac8ce470c5901032d6faf34.tar.gz
lavfi/mp: try to pass interlaced & tff flags
This makes mp=softpulldown actually useful. Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_mp.c')
-rw-r--r--libavfilter/vf_mp.c7
1 files changed, 6 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud