diff options
Diffstat (limited to 'src/combined/ffmpeg')
-rw-r--r-- | src/combined/ffmpeg/ff_video_decoder.c | 2 | ||||
-rw-r--r-- | src/combined/ffmpeg/ffmpeg_compat.h | 16 | ||||
-rw-r--r-- | src/combined/ffmpeg/ffmpeg_decoder.h | 2 |
3 files changed, 16 insertions, 4 deletions
diff --git a/src/combined/ffmpeg/ff_video_decoder.c b/src/combined/ffmpeg/ff_video_decoder.c index 367fe4483..1383c7f67 100644 --- a/src/combined/ffmpeg/ff_video_decoder.c +++ b/src/combined/ffmpeg/ff_video_decoder.c @@ -44,8 +44,6 @@ #include "ffmpeg_decoder.h" #include "ff_mpeg_parser.h" -#define FF_API_CODEC_ID 1 - #ifdef HAVE_FFMPEG_AVUTIL_H # include <postprocess.h> #else diff --git a/src/combined/ffmpeg/ffmpeg_compat.h b/src/combined/ffmpeg/ffmpeg_compat.h index fc338cb75..f28f88fc8 100644 --- a/src/combined/ffmpeg/ffmpeg_compat.h +++ b/src/combined/ffmpeg/ffmpeg_compat.h @@ -143,6 +143,22 @@ # define PIX_FMT_RGB565LE AV_PIX_FMT_RGB565LE # define PIX_FMT_PAL8 AV_PIX_FMT_PAL8 # define PixelFormat AVPixelFormat +/* video_out/video_out_vaapi */ +# define PIX_FMT_VAAPI_IDCT AV_PIX_FMT_VAAPI_IDCT +# define PIX_FMT_VAAPI_MOCO AV_PIX_FMT_VAAPI_MOCO +#endif + +#if defined LIBAVCODEC_VERSION_INT && LIBAVCODEC_VERSION_INT >= ((54<<16)|(25<<8)) +/* dxr3/ffmpeg_encoder */ +# define CODEC_ID_MPEG1VIDEO AV_CODEC_ID_MPEG1VIDEO +/* video_out/video_out_vaapi */ +# define CODEC_ID_MPEG2VIDEO AV_CODEC_ID_MPEG2VIDEO +# define CODEC_ID_MPEG4 AV_CODEC_ID_MPEG4 +# define CODEC_ID_H263 AV_CODEC_ID_H263 +# define CODEC_ID_H264 AV_CODEC_ID_H264 +# define CODEC_ID_WMV3 AV_CODEC_ID_WMV3 +# define CODEC_ID_VC1 AV_CODEC_ID_VC1 +/* ff_*_decoder is already handled by mkcodeclists.pl */ #endif #ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE diff --git a/src/combined/ffmpeg/ffmpeg_decoder.h b/src/combined/ffmpeg/ffmpeg_decoder.h index 0260497c2..a1e01adaf 100644 --- a/src/combined/ffmpeg/ffmpeg_decoder.h +++ b/src/combined/ffmpeg/ffmpeg_decoder.h @@ -25,8 +25,6 @@ #include "config.h" #endif -#define FF_API_CODEC_ID 1 - #ifdef HAVE_FFMPEG_AVUTIL_H # include <avcodec.h> #else |