]> git.sesse.net Git - mlt/commitdiff
Fix build against FFmepg 0.5 and 0.6.
authorDan Dennedy <dan@dennedy.org>
Mon, 31 Dec 2012 21:16:34 +0000 (13:16 -0800)
committerDan Dennedy <dan@dennedy.org>
Mon, 31 Dec 2012 21:16:34 +0000 (13:16 -0800)
src/modules/avformat/consumer_avformat.c
src/modules/avformat/producer_avformat.c

index a93219fe9c6b259b1b0984112d96a8b4083cf1de..8c96cb08f7d68b18aa6eb284ae6a30a957031e9a 100644 (file)
@@ -51,6 +51,7 @@
 #  include <libavutil/samplefmt.h>
 #else
 #  define AV_SAMPLE_FMT_NONE SAMPLE_FMT_NONE
+#  define AV_SAMPLE_FMT_U8  SAMPLE_FMT_U8
 #  define AV_SAMPLE_FMT_S16 SAMPLE_FMT_S16
 #  define AV_SAMPLE_FMT_S32 SAMPLE_FMT_S32
 #  define AV_SAMPLE_FMT_FLT SAMPLE_FMT_FLT
index 14e1083ba9841c02d3e96b14c50fe2bda110367a..83b3e8adf224076a03dc16ffd1d7a48bc0228a44 100644 (file)
@@ -38,6 +38,7 @@
 #if LIBAVUTIL_VERSION_INT >= ((50<<16)+(38<<8)+0)
 #  include <libavutil/samplefmt.h>
 #else
+#  define AV_SAMPLE_FMT_U8  SAMPLE_FMT_U8
 #  define AV_SAMPLE_FMT_S16 SAMPLE_FMT_S16
 #  define AV_SAMPLE_FMT_S32 SAMPLE_FMT_S32
 #  define AV_SAMPLE_FMT_FLT SAMPLE_FMT_FLT