Commit 929692f4 authored by Rafaël Carré's avatar Rafaël Carré

av_vdpau_alloc_context replacement for FFmpeg

parent 55fbe11e
......@@ -479,6 +479,10 @@ enum {
# define err_recognition error_recognition
#endif
#if LIBAVCODEC_VERSION_MAJOR == 55 && LIBAVCODEC_VERSION_MINOR <= 42 && LIBAVCODEC_VERSION_MICRO >= 100
# define av_vdpau_alloc_context av_alloc_vdpaucontext
#endif
#endif /* HAVE_LIBAVCODEC_AVCODEC_H */
#ifdef HAVE_LIBAVUTIL_AVUTIL_H
......
......@@ -34,6 +34,7 @@
#include <vlc_fourcc.h>
#include <vlc_picture.h>
#include "../../codec/avcodec/va.h"
#include "../../codec/avcodec/avcommon_compat.h"
static int Open(vlc_va_t *, AVCodecContext *, const es_format_t *);
static void Close(vlc_va_t *);
......
......@@ -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 *, AVCodecContext *, const es_format_t *);
static void Close(vlc_va_t *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment