diff options
Diffstat (limited to '')
-rw-r--r-- | src/decoder/ffmpeg_decoder_plugin.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/decoder/ffmpeg_decoder_plugin.c b/src/decoder/ffmpeg_decoder_plugin.c index 05a59c1e0..96a88a588 100644 --- a/src/decoder/ffmpeg_decoder_plugin.c +++ b/src/decoder/ffmpeg_decoder_plugin.c @@ -35,8 +35,12 @@ #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libavformat/avio.h> +#include <libavutil/avutil.h> #include <libavutil/log.h> #include <libavutil/mathematics.h> +#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51,5,0) +#include <libavutil/dict.h> +#endif #undef G_LOG_DOMAIN #define G_LOG_DOMAIN "ffmpeg" @@ -428,7 +432,7 @@ ffmpeg_decode(struct decoder *decoder, struct input_stream *input) return; } -#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,2,0) +#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,6,0) const int find_result = avformat_find_stream_info(format_context, NULL); #else @@ -601,7 +605,7 @@ ffmpeg_copy_metadata(struct tag *tag, #endif const ffmpeg_tag_map tag_map) { -#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,1,0) +#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51,5,0) AVDictionaryEntry *mt = NULL; while ((mt = av_dict_get(m, tag_map.name, mt, 0)) != NULL) @@ -635,7 +639,7 @@ ffmpeg_stream_tag(struct input_stream *is) return NULL; } -#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,2,0) +#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,6,0) const int find_result = avformat_find_stream_info(f, NULL); #else |