From 3ead46f833f91cd31cbc78bb72783f93a872b333 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 18 Aug 2011 00:13:50 +0000 Subject: [PATCH] Fix k9copy FTBFS under older revisions of libavcodec git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1247897 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- k9author/k9avidecode.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 #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 #include #include