diff options
author | wm4 <wm4@nowhere> | 2013-11-29 14:19:29 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-29 14:19:29 +0100 |
commit | 60cd30055812d95aba453bdcb9b316e63fda5a31 (patch) | |
tree | fb54dd4a2bf445f7a54966c2e6389d0a2f4a9a5a /video/filter/vf_vavpp.c | |
parent | 0d255f07bf46948289a2698a4a7063514d0e1ef9 (diff) | |
download | mpv-60cd30055812d95aba453bdcb9b316e63fda5a31.tar.bz2 mpv-60cd30055812d95aba453bdcb9b316e63fda5a31.tar.xz |
vaapi: remove unused hw image formats, simplify
PIX_FMT_VDA_VLD and PIX_FMT_VAAPI_VLD were never used anywhere. I'm not
sure why they were even added, and they sound like they are just for
compatibility with XvMC-style decoding, which sucks anyway.
Now that there's only a single vaapi format, remove the
IMGFMT_IS_VAAPI() macro. Also get rid of IMGFMT_IS_VDA(), which was
unused.
Diffstat (limited to 'video/filter/vf_vavpp.c')
-rw-r--r-- | video/filter/vf_vavpp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/filter/vf_vavpp.c b/video/filter/vf_vavpp.c index fddc870550..c96d23590b 100644 --- a/video/filter/vf_vavpp.c +++ b/video/filter/vf_vavpp.c @@ -268,7 +268,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_IS_VAAPI(imgfmt) || va_image_format_from_imgfmt(p->va->image_formats, imgfmt)) + if (imgfmt == IMGFMT_VAAPI || va_image_format_from_imgfmt(p->va->image_formats, imgfmt)) return vf_next_query_format(vf, IMGFMT_VAAPI); return 0; } |