Fix FTBFS with newer libavcodec library

pull/1/head
Francois Andriot 11 years ago committed by Slávek Banko
parent b4d29e0505
commit 76443cbb9c

@ -43,7 +43,11 @@ typedef int (*avformat_find_stream_info_t)(AVFormatContext *, AVDictionary **);
#else #else
typedef int (*av_find_stream_info_t)(AVFormatContext *); typedef int (*av_find_stream_info_t)(AVFormatContext *);
#endif #endif
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 26, 0)
typedef AVCodec* (*avcodec_find_decoder_t)(enum AVCodecID);
#else
typedef AVCodec* (*avcodec_find_decoder_t)(enum CodecID); typedef AVCodec* (*avcodec_find_decoder_t)(enum CodecID);
#endif
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 8, 0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 8, 0)
typedef int (*avcodec_open2_t)(AVCodecContext *, AVCodec *, AVDictionary **); typedef int (*avcodec_open2_t)(AVCodecContext *, AVCodec *, AVDictionary **);
#else #else

Loading…
Cancel
Save