From 4012528768e9a46e56b0036704ade3077a776ed7 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Mon, 31 Dec 2012 13:16:34 -0800 Subject: [PATCH] Fix build against FFmepg 0.5 and 0.6. --- src/modules/avformat/consumer_avformat.c | 1 + src/modules/avformat/producer_avformat.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/modules/avformat/consumer_avformat.c b/src/modules/avformat/consumer_avformat.c index a93219fe9..8c96cb08f 100644 --- a/src/modules/avformat/consumer_avformat.c +++ b/src/modules/avformat/consumer_avformat.c @@ -51,6 +51,7 @@ # include #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 diff --git a/src/modules/avformat/producer_avformat.c b/src/modules/avformat/producer_avformat.c index 14e1083ba..83b3e8adf 100644 --- a/src/modules/avformat/producer_avformat.c +++ b/src/modules/avformat/producer_avformat.c @@ -38,6 +38,7 @@ #if LIBAVUTIL_VERSION_INT >= ((50<<16)+(38<<8)+0) # include #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