From 638950731451cbef616015bd81d411e7cdbb9ff0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 17 Mar 2014 18:21:11 +0100 Subject: vdpau: remove legacy pixel formats They were used by ancient libavcodec versions. This also removes the need to distinguish vdpau image formats at all (since there is only one), and some code can be simplified. --- video/out/vo_vdpau.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'video/out/vo_vdpau.c') diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index 1045572aa4..9822063892 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -1189,8 +1189,7 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) "output_surface_put_bits_native"); } } else { - reserved_mpi = mp_vdpau_get_video_surface(vc->mpvdp, IMGFMT_VDPAU, - vc->vdp_chroma_type, + reserved_mpi = mp_vdpau_get_video_surface(vc->mpvdp, vc->vdp_chroma_type, mpi->w, mpi->h); if (!reserved_mpi) return; -- cgit v1.2.3