summaryrefslogtreecommitdiffstats
path: root/k9author
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2013-08-01 17:22:00 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-08-01 17:22:00 +0200
commit76443cbb9c6f0a76e94eb263cbd6949e44a22274 (patch)
treece11990be93487c4c6184bea002289e9b0a6e81a /k9author
parentb4d29e050505e6d89650cb90085b28ed2069d9e3 (diff)
downloadk9copy-76443cbb9c6f0a76e94eb263cbd6949e44a22274.tar.gz
k9copy-76443cbb9c6f0a76e94eb263cbd6949e44a22274.zip
Fix FTBFS with newer libavcodec library
Diffstat (limited to 'k9author')
-rw-r--r--k9author/k9avidecode.h4
1 files changed, 4 insertions, 0 deletions
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