Bug #872 ยป 0001-Improved-AVMEDIA_TYPE_-vs-CODEC_TYPE_-handling.patch
command/decoder.cpp | ||
---|---|---|
#include "decoder.h"
|
||
#ifndef AVMEDIA_TYPE_AUDIO
|
||
#define AVMEDIA_TYPE_AUDIO CODEC_TYPE_AUDIO
|
||
#if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(50, 14, 0)
|
||
#define AVMEDIA_TYPE_AUDIO CODEC_TYPE_AUDIO
|
||
#define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO
|
||
#define AVMEDIA_TYPE_UNKNOWN CODEC_TYPE_UNKNOWN
|
||
#endif
|
||
#ifndef AVMEDIA_TYPE_VIDEO
|
||
#define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO
|
||
#endif
|
||
#ifndef AVMEDIA_TYPE_UNKNOWN
|
||
#define AVMEDIA_TYPE_UNKNOWN CODEC_TYPE_UNKNOWN
|
||
#endif
|
||
#include "decoder.h"
|
||
#if LIBAVCODEC_VERSION_INT < ((52<<16)+(65<<8)+0)
|
||
int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
|
||
{
|