Commit 1f02927d authored by Paul B Mahol's avatar Paul B Mahol

lavfi/mp: try to pass interlaced & tff flags

This makes mp=softpulldown actually useful.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 91b46145
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment