summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--k9author/k9avidecode.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/k9author/k9avidecode.cpp b/k9author/k9avidecode.cpp
index bfb13ac..1ac2f4e 100644
--- a/k9author/k9avidecode.cpp
+++ b/k9author/k9avidecode.cpp
@@ -19,6 +19,12 @@
#include <libavformat/avformat.h>
#endif
+// This is probably the incorrect revision for when CODEC_TYPE_VIDEO was removed
+// Please update the comparison below if you know the exact revision that CODEC_TYPE_VIDEO was removed in!
+#if LIBAVCODEC_VERSION_INT < (AV_VERSION_INT(52,72,2))
+#define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO
+#endif
+
#include <tqimage.h>
#include <dlfcn.h>
#include <klocale.h>