diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-25 08:17:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-25 08:17:00 +0400 |
commit | f260a878e45a4eed8b8b1706a2e9c1d0b32d70da (patch) | |
tree | b33741ff93f0796798259e51ed69a7319b3f6fc3 /intern | |
parent | 81f7e361d290a595a40f5811422e03f7560ff9f3 (diff) |
give a more useful error when building with an old ffmpeg.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ffmpeg/ffmpeg_compat.h | 9 |
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> |