Commit dc4db714 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avcodec: use the standard includes

parent 77ed9b1d
...@@ -35,11 +35,7 @@ ...@@ -35,11 +35,7 @@
#include <vlc_avcodec.h> #include <vlc_avcodec.h>
/* ffmpeg header */ /* ffmpeg header */
#ifdef HAVE_LIBAVCODEC_AVCODEC_H #include <libavcodec/avcodec.h>
# include <libavcodec/avcodec.h>
#else
# include <avcodec.h>
#endif
#if LIBAVUTIL_VERSION_INT >= ((50<<16)+(38<<8)+0) #if LIBAVUTIL_VERSION_INT >= ((50<<16)+(38<<8)+0)
# include "libavutil/audioconvert.h" # include "libavutil/audioconvert.h"
......
...@@ -37,11 +37,7 @@ ...@@ -37,11 +37,7 @@
/* ffmpeg header */ /* ffmpeg header */
#define HAVE_MMX 1 #define HAVE_MMX 1
#ifdef HAVE_LIBAVCODEC_AVCODEC_H #include <libavcodec/avcodec.h>
# include <libavcodec/avcodec.h>
#else
# include <avcodec.h>
#endif
#include "avcodec.h" #include "avcodec.h"
#include "chroma.h" #include "chroma.h"
......
...@@ -26,11 +26,7 @@ ...@@ -26,11 +26,7 @@
#include <vlc_cpu.h> #include <vlc_cpu.h>
#define HAVE_MMX 1 #define HAVE_MMX 1
#ifdef HAVE_LIBAVCODEC_AVCODEC_H #include <libavcodec/avcodec.h>
# include <libavcodec/avcodec.h>
#else
# include <avcodec.h>
#endif
#include "avcodec.h" #include "avcodec.h"
/** /**
......
...@@ -34,11 +34,7 @@ ...@@ -34,11 +34,7 @@
#include <vlc_filter.h> #include <vlc_filter.h>
/* ffmpeg header */ /* ffmpeg header */
#ifdef HAVE_LIBAVCODEC_AVCODEC_H #include <libavcodec/avcodec.h>
# include <libavcodec/avcodec.h>
#else
# include <avcodec.h>
#endif
#include "avcodec.h" #include "avcodec.h"
#include "avcommon.h" #include "avcommon.h"
......
...@@ -42,15 +42,11 @@ ...@@ -42,15 +42,11 @@
#include <vlc_cpu.h> #include <vlc_cpu.h>
#include <assert.h> #include <assert.h>
#ifdef HAVE_LIBAVCODEC_AVCODEC_H #include <libavcodec/avcodec.h>
# include <libavcodec/avcodec.h> #ifdef HAVE_AVCODEC_DXVA2
# ifdef HAVE_AVCODEC_DXVA2 # define DXVA2API_USE_BITFIELDS
# define DXVA2API_USE_BITFIELDS # define COBJMACROS
# define COBJMACROS # include <libavcodec/dxva2.h>
# include <libavcodec/dxva2.h>
# endif
#else
# include <avcodec.h>
#endif #endif
#include "avcodec.h" #include "avcodec.h"
......
...@@ -42,11 +42,7 @@ ...@@ -42,11 +42,7 @@
/* ffmpeg header */ /* ffmpeg header */
#define HAVE_MMX 1 #define HAVE_MMX 1
#ifdef HAVE_LIBAVCODEC_AVCODEC_H #include <libavcodec/avcodec.h>
# include <libavcodec/avcodec.h>
#else
# include <avcodec.h>
#endif
#include "avcodec.h" #include "avcodec.h"
#include "avcommon.h" #include "avcommon.h"
......
...@@ -29,11 +29,7 @@ ...@@ -29,11 +29,7 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_codec.h> #include <vlc_codec.h>
#ifdef HAVE_LIBAVCODEC_AVCODEC_H #include <libavcodec/avcodec.h>
# include <libavcodec/avcodec.h>
#else
# include <avcodec.h>
#endif
#include "avcodec.h" #include "avcodec.h"
/***************************************************************************** /*****************************************************************************
......
...@@ -34,13 +34,9 @@ ...@@ -34,13 +34,9 @@
#include <vlc_avcodec.h> #include <vlc_avcodec.h>
/* ffmpeg header */ /* ffmpeg header */
#ifdef HAVE_LIBAVCODEC_AVCODEC_H #include <libavcodec/avcodec.h>
# include <libavcodec/avcodec.h> #ifdef HAVE_AVCODEC_VAAPI
# ifdef HAVE_AVCODEC_VAAPI # include <libavcodec/vaapi.h>
# include <libavcodec/vaapi.h>
# endif
#else
# include <avcodec.h>
#endif #endif
#include "avcodec.h" #include "avcodec.h"
......
...@@ -29,11 +29,7 @@ ...@@ -29,11 +29,7 @@
#include <vlc_fourcc.h> #include <vlc_fourcc.h>
#include <assert.h> #include <assert.h>
#ifdef HAVE_LIBAVCODEC_AVCODEC_H #include <libavcodec/avcodec.h>
# include <libavcodec/avcodec.h>
#else
# include <avcodec.h>
#endif
#include "avcodec.h" #include "avcodec.h"
#include "va.h" #include "va.h"
......
...@@ -44,21 +44,15 @@ ...@@ -44,21 +44,15 @@
#include <assert.h> #include <assert.h>
/* ffmpeg header */ /* ffmpeg header */
#ifdef HAVE_LIBAVCODEC_AVCODEC_H #include <libavcodec/avcodec.h>
# include <libavcodec/avcodec.h> #ifdef HAVE_AVCODEC_VAAPI
# ifdef HAVE_AVCODEC_VAAPI # include <libavcodec/vaapi.h>
# include <libavcodec/vaapi.h> #endif
# endif #ifdef HAVE_AVCODEC_DXVA2
# ifdef HAVE_AVCODEC_DXVA2 # include <libavcodec/dxva2.h>
# include <libavcodec/dxva2.h> #endif
# endif #ifdef HAVE_AVCODEC_VDA
# ifdef HAVE_AVCODEC_VDA # include <libavcodec/vda.h>
# include <libavcodec/vda.h>
# endif
#elif defined(HAVE_FFMPEG_AVCODEC_H)
# include <ffmpeg/avcodec.h>
#else
# include <avcodec.h>
#endif #endif
#include "avcodec.h" #include "avcodec.h"
......
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