From 3ec7f528c4af6efa9f5b5951a25ea4c6311741b5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 16 Mar 2014 09:21:21 +0100 Subject: 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. --- video/decode/vdpau.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/decode/vdpau.c') 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, -- cgit v1.2.3