give a more useful error when building with an old ffmpeg.

This commit is contained in:
Campbell Barton
2011-09-25 04:17:00 +00:00
parent 81f7e361d2
commit f260a878e4

View File

@@ -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>