diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-05-22 20:25:54 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-05-22 20:30:09 +0000 |
commit | 1f02927d288cd2ef3ac8ce470c5901032d6faf34 (patch) | |
tree | 3ceab20460353a9b8c80d4948270158a52bbc09c /libavfilter/vf_mp.c | |
parent | 91b461459a5dea7e032d6a16ad18c6b9dc188a2e (diff) | |
download | ffmpeg-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.c | 7 |
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; |