vf_vavpp: fix bob deinterlacing for bottom field first videos

Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
Filip Milivojevic 2015-05-30 13:53:57 +02:00 committed by wm4
parent ed925c70c9
commit 47d841458d
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,8 @@ static struct mp_image *render(struct vf_instance *vf, struct mp_image *in,
if (!check_error(vf, status, "vaMapBuffer()"))
break;
filter_params->flags = flags & VA_TOP_FIELD ? 0 : VA_DEINTERLACING_BOTTOM_FIELD;
if (!(in->fields & MP_IMGFIELD_TOP_FIRST))
filter_params->flags |= VA_DEINTERLACING_BOTTOM_FIELD_FIRST;
vaUnmapBuffer(p->display, *(p->pipe.filters));
param->surface = in_id;