Commit 14e3a156 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix include order in VAAPI

You cannot check HAVE_AVCODEC_VAAPI before including "avcodec.h"
parent ac0d798c
......@@ -31,9 +31,6 @@
#ifdef HAVE_LIBAVCODEC_AVCODEC_H
# include <libavcodec/avcodec.h>
# ifdef HAVE_AVCODEC_VAAPI
# include <libavcodec/vaapi.h>
# endif
#elif defined(HAVE_FFMPEG_AVCODEC_H)
# include <ffmpeg/avcodec.h>
#else
......@@ -45,10 +42,15 @@
#ifdef HAVE_AVCODEC_VAAPI
#if defined( HAVE_LIBAVCODEC_AVCODEC_H )
# include <libavcodec/vaapi.h>
#else
# error "Missing VAAPI header"
#endif
#include <X11/Xlib.h>
#include <va/va_x11.h>
typedef struct
{
VASurfaceID i_id;
......
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