From b2149f7fe102f7d00beb2051e179160e47cbcbc6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 21 Jan 2015 22:12:30 +0100 Subject: vaapi: minor simplification --- video/filter/vf_vavpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/filter') diff --git a/video/filter/vf_vavpp.c b/video/filter/vf_vavpp.c index 4b6322cbe2..ec39772865 100644 --- a/video/filter/vf_vavpp.c +++ b/video/filter/vf_vavpp.c @@ -284,7 +284,7 @@ static void uninit(struct vf_instance *vf) static int query_format(struct vf_instance *vf, unsigned int imgfmt) { struct vf_priv_s *p = vf->priv; - if (imgfmt == IMGFMT_VAAPI || va_image_format_from_imgfmt(p->va->image_formats, imgfmt)) + if (imgfmt == IMGFMT_VAAPI || va_image_format_from_imgfmt(p->va, imgfmt)) return vf_next_query_format(vf, IMGFMT_VAAPI); return 0; } -- cgit v1.2.3