summaryrefslogtreecommitdiffstats
path: root/video/decode/vdpau.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/vdpau.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/vdpau.c')
-rw-r--r--video/decode/vdpau.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vdpau.c b/video/decode/vdpau.c
index 995b5460e8..34435360c3 100644
--- a/video/decode/vdpau.c
+++ b/video/decode/vdpau.c
@@ -206,7 +206,7 @@ static int probe(struct vd_lavc_hwdec *hwdec, struct mp_hwdec_info *info,
const struct vd_lavc_hwdec mp_vd_lavc_vdpau = {
.type = HWDEC_VDPAU,
- .image_formats = (const int[]) {IMGFMT_VDPAU, 0},
+ .image_format = IMGFMT_VDPAU,
.probe = probe,
.init = init,
.uninit = uninit,