[vlc-devel] [PATCH] vdpau/avcodec: fix build for older ffmpeg

Rémi Denis-Courmont remi at remlab.net
Thu Feb 6 08:34:15 CET 2014


No. We have already discussed this.

-- 
Rémi Denis-Courmont
Sent from my NVIDIA Tegra-powered device

----- Reply message -----
De : "Tristan Matthews" <le.businessman at gmail.com>
Pour : <vlc-devel at videolan.org>
Objet : [vlc-devel] [PATCH] vdpau/avcodec: fix build for older ffmpeg
Date : mer., févr. 5, 2014 23:53

---
modules/hw/vdpau/avcodec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/hw/vdpau/avcodec.c b/modules/hw/vdpau/avcodec.c
index 7081dee..a6eab23 100644
--- a/modules/hw/vdpau/avcodec.c
+++ b/modules/hw/vdpau/avcodec.c
@@ -37,6 +37,7 @@
#include <vlc_xlib.h>
#include "vlc_vdpau.h"
#include "../../codec/avcodec/va.h"
+#include "../../codec/avcodec/avcommon_compat.h"

static int Open(vlc_va_t *, int, const es_format_t *);
static void Close(vlc_va_t *);
@@ -279,7 +280,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))
+#if LIBAVCODEC_VERSION_CHECK(55, 26, 0, 42, 100)
sys->context = av_vdpau_alloc_context();
#else
sys->context = calloc(1, sizeof (*sys->context));
-- 
1.8.5.3

_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140206/1f2cfd86/attachment.html>


More information about the vlc-devel mailing list