vlc | branch: master | Rémi Denis-Courmont <[email protected]> | 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)
     {

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to