lavfi/mp: try to pass interlaced & tff flags

This makes mp=softpulldown actually useful.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/18/merge
Paul B Mahol 12 years ago
parent 91b461459a
commit 1f02927d28
  1. 7
      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;

Loading…
Cancel
Save