We now have a current svn snapshot of libqxt in our contrib dir, and
[quassel.git] / src / contrib / libqxt-2007-10-24 / config.tests / ffmpeg / main.cpp
diff --git a/src/contrib/libqxt-2007-10-24/config.tests/ffmpeg/main.cpp b/src/contrib/libqxt-2007-10-24/config.tests/ffmpeg/main.cpp
new file mode 100644 (file)
index 0000000..9c6007a
--- /dev/null
@@ -0,0 +1,26 @@
+#include <QObject>
+#ifndef INT64_C
+        #define INT64_C Q_INT64_C
+#endif
+
+
+
+#include <ffmpeg/avcodec.h>
+#include <ffmpeg/avformat.h>
+
+
+int main (int,char**)
+       {
+        av_register_all();
+        avcodec_init();
+        avcodec_register_all();
+
+       if(LIBAVCODEC_VERSION_INT>>16!=51)
+               {
+               qDebug("incompatible major version %i",LIBAVCODEC_VERSION_INT>>16);
+               return 3;
+               }
+       return 0;
+       }
+
+