]> git.sesse.net Git - mlt/blobdiff - src/modules/avformat/consumer_avformat.c
fix SAMPLE_FMT support for v0.6 and less of libav/ffmpeg
[mlt] / src / modules / avformat / consumer_avformat.c
index 5fdf9b3d700e43fe7188e628e75334f56579d4c1..a4aa08d25c07f22f15a2a1a27b4c1146904c677e 100644 (file)
 #if LIBAVUTIL_VERSION_INT >= ((50<<16)+(8<<8)+0)
 #include <libavutil/pixdesc.h>
 #endif
+#include <libavutil/mathematics.h>
+
 #if LIBAVUTIL_VERSION_INT >= ((50<<16)+(38<<8)+0)
-#include <libavutil/samplefmt.h>
+#  include <libavutil/samplefmt.h>
+#else
+#  define AV_SAMPLE_FMT_S16 SAMPLE_FMT_S16
+#  define AV_SAMPLE_FMT_S32 SAMPLE_FMT_S32
+#  define AV_SAMPLE_FMT_FLT SAMPLE_FMT_FLT
 #endif
-#include <libavutil/mathematics.h>
 
 #if LIBAVUTIL_VERSION_INT < (50<<16)
 #define PIX_FMT_RGB32 PIX_FMT_RGBA32