1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-20 05:42:19 +00:00

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

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()")) if (!check_error(vf, status, "vaMapBuffer()"))
break; break;
filter_params->flags = flags & VA_TOP_FIELD ? 0 : VA_DEINTERLACING_BOTTOM_FIELD; 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)); vaUnmapBuffer(p->display, *(p->pipe.filters));
param->surface = in_id; param->surface = in_id;