Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-09-25 08:17:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-25 08:17:00 +0400
commitf260a878e45a4eed8b8b1706a2e9c1d0b32d70da (patch)
treeb33741ff93f0796798259e51ed69a7319b3f6fc3 /intern/ffmpeg
parent81f7e361d290a595a40f5811422e03f7560ff9f3 (diff)
give a more useful error when building with an old ffmpeg.
Diffstat (limited to 'intern/ffmpeg')
-rw-r--r--intern/ffmpeg/ffmpeg_compat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/intern/ffmpeg/ffmpeg_compat.h b/intern/ffmpeg/ffmpeg_compat.h
index d8172902a4c..a23dd22f932 100644
--- a/intern/ffmpeg/ffmpeg_compat.h
+++ b/intern/ffmpeg/ffmpeg_compat.h
@@ -25,6 +25,15 @@
#include <libavformat/avformat.h>
+
+
+/* check our ffmpeg is new enough, avoids user complaints */
+#if (LIBAVFORMAT_VERSION_MAJOR < 52) || ((LIBAVFORMAT_VERSION_MAJOR == 52) && (LIBAVFORMAT_VERSION_MINOR <= 64))
+# error "FFmpeg 0.7 or newer is needed, Upgrade you're FFmpeg or disable it"
+#endif
+/* end sanity check */
+
+
#include <libavcodec/avcodec.h>
#include <libavutil/rational.h>