From 76443cbb9c6f0a76e94eb263cbd6949e44a22274 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Thu, 1 Aug 2013 17:22:00 +0200 Subject: [PATCH] Fix FTBFS with newer libavcodec library --- k9author/k9avidecode.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/k9author/k9avidecode.h b/k9author/k9avidecode.h index dae9a87..c4ca599 100644 --- a/k9author/k9avidecode.h +++ b/k9author/k9avidecode.h @@ -43,7 +43,11 @@ typedef int (*avformat_find_stream_info_t)(AVFormatContext *, AVDictionary **); #else typedef int (*av_find_stream_info_t)(AVFormatContext *); #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); +#endif #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 8, 0) typedef int (*avcodec_open2_t)(AVCodecContext *, AVCodec *, AVDictionary **); #else