[vlc-commits] vdpau: remove stray setup error case
Rémi Denis-Courmont
git at videolan.org
Sun Sep 27 21:57:46 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 27 15:47:57 2015 +0300| [a81d19fd37f5381b70240cb789ef4304bfd81b0f] | committer: Rémi Denis-Courmont
vdpau: remove stray setup error case
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a81d19fd37f5381b70240cb789ef4304bfd81b0f
---
modules/hw/vdpau/avcodec.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index 0c2a946..f721bef 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -143,15 +143,6 @@ static int Copy(vlc_va_t *va, picture_t *pic, uint8_t *data)
static int Setup(vlc_va_t *va, AVCodecContext *avctx, vlc_fourcc_t *chromap)
{
vlc_va_sys_t *sys = va->sys;
- VdpChromaType type;
- uint32_t width, height;
-
- if (av_vdpau_get_surface_parameters(avctx, &type, &width, &height))
- return VLC_EGENERIC;
-
- assert(type == sys->type);
- if (sys->width != width || sys->height != height)
- return VLC_EGENERIC;
switch (sys->type)
{
More information about the vlc-commits
mailing list