Commit ec43721c authored by Max Kellermann's avatar Max Kellermann

Merge branch 'v0.16.x'

Conflicts: src/decoder/ffmpeg_decoder_plugin.c
parents 26ec6271 39d52762
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment