summaryrefslogtreecommitdiffstats
path: root/video/decode/vda.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-16 09:21:21 +0100
committerwm4 <wm4@nowhere>2014-03-16 13:19:19 +0100
commit3ec7f528c4af6efa9f5b5951a25ea4c6311741b5 (patch)
treea4b080461b702d5309924a981e8cf9294e494a5e /video/decode/vda.c
parent75b185dfc50757402bbaf2c8b8fa8aa9602e92e8 (diff)
downloadmpv-3ec7f528c4af6efa9f5b5951a25ea4c6311741b5.tar.bz2
mpv-3ec7f528c4af6efa9f5b5951a25ea4c6311741b5.tar.xz
vd_lavc: remove compatibility crap
All this code was needed for compatibility with very old libavcodec versions only (such as Libav 9). Includes some now-possible simplifications too.
Diffstat (limited to 'video/decode/vda.c')
-rw-r--r--video/decode/vda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vda.c b/video/decode/vda.c
index 91d96f191c..6ac34aed89 100644
--- a/video/decode/vda.c
+++ b/video/decode/vda.c
@@ -214,7 +214,7 @@ static struct mp_image *allocate_image(struct lavc_ctx *ctx, int fmt,
const struct vd_lavc_hwdec mp_vd_lavc_vda = {
.type = HWDEC_VDA,
- .image_formats = (const int[]) { IMGFMT_VDA, 0 },
+ .image_format = IMGFMT_VDA,
.probe = probe,
.init = init,
.uninit = uninit,