summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_vavpp.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-07-15 20:32:49 +0200
committerwm4 <wm4@nowhere>2016-07-15 20:37:46 +0200
commitea18cb99ba909c0deaafa83214a5f6c44caf8e1c (patch)
tree7ef37aa2401485db06702bd97e21fccd98e7ffee /video/filter/vf_vavpp.c
parentc5361d12d8886b292325cfb6f1ae075913bc9a96 (diff)
downloadmpv-ea18cb99ba909c0deaafa83214a5f6c44caf8e1c.tar.bz2
mpv-ea18cb99ba909c0deaafa83214a5f6c44caf8e1c.tar.xz
vf_vavpp: get rid of mp_refqueue_is_interlaced()
This makes the difference between passing VA_FRAME_PICTURE or VA_BOTTOM_FIELD for progressive frames (that should be force- deinterlaced) to VAProcPipelineParameterBuffer.flags. VA-VPP doesn't really seem to care, and we can get rid of mp_refqueue_is_interlaced() entirely. It could be argued it's better to pass field flags instead of the progressive flag.
Diffstat (limited to 'video/filter/vf_vavpp.c')
-rw-r--r--video/filter/vf_vavpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/filter/vf_vavpp.c b/video/filter/vf_vavpp.c
index b24f886241..ad669ac159 100644
--- a/video/filter/vf_vavpp.c
+++ b/video/filter/vf_vavpp.c
@@ -169,7 +169,7 @@ static struct mp_image *render(struct vf_instance *vf)
mp_image_copy_attributes(img, in);
unsigned int flags = va_get_colorspace_flag(p->params.color.space);
- if (!mp_refqueue_is_interlaced(p->queue)) {
+ if (!mp_refqueue_should_deint(p->queue)) {
flags |= VA_FRAME_PICTURE;
} else if (mp_refqueue_is_top_field(p->queue)) {
flags |= VA_TOP_FIELD;