diff options
author | wm4 <wm4@nowhere> | 2014-03-17 18:21:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-17 18:21:11 +0100 |
commit | 638950731451cbef616015bd81d411e7cdbb9ff0 (patch) | |
tree | fe19c24135e89048df777b163474936afe8b2902 /video/out/vo_vdpau.c | |
parent | 4e70335c2fa3eaea6f8f2d11fb7981f55a582fa5 (diff) | |
download | mpv-638950731451cbef616015bd81d411e7cdbb9ff0.tar.bz2 mpv-638950731451cbef616015bd81d411e7cdbb9ff0.tar.xz |
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.
Diffstat (limited to 'video/out/vo_vdpau.c')
-rw-r--r-- | video/out/vo_vdpau.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |