[vlc-commits] vdpau_avcodec: remove development versions support

Rémi Denis-Courmont git at videolan.org
Thu Feb 27 17:34:24 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Feb 27 18:33:57 2014 +0200| [5bf612e9bdd7e4a2ac766df9936cc9089f5c3fb2] | committer: Rémi Denis-Courmont

vdpau_avcodec: remove development versions support

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5bf612e9bdd7e4a2ac766df9936cc9089f5c3fb2
---

 modules/hw/vdpau/avcodec.c |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index 7081dee..ad8c21b 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -151,9 +151,6 @@ static void Deinit(vlc_va_t *va)
 
     assert(sys->context->decoder != VDP_INVALID_HANDLE);
     vdp_decoder_destroy(sys->vdp, sys->context->decoder);
-#if (LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 13, 0))
-    av_freep(&sys->context->bitstream_buffers);
-#endif
 }
 
 static int Setup(vlc_va_t *va, void **ctxp, vlc_fourcc_t *chromap,
@@ -279,11 +276,7 @@ static int Open(vlc_va_t *va, int codec, const es_format_t *fmt)
     if (unlikely(sys == NULL))
        return VLC_ENOMEM;
 
-#if (LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55, 26, 0))
     sys->context = av_vdpau_alloc_context();
-#else
-    sys->context = calloc(1, sizeof (*sys->context));
-#endif
     if (unlikely(sys->context == NULL))
     {
         free(sys);



More information about the vlc-commits mailing list