Commit 39d52762 authored by Max Kellermann's avatar Max Kellermann

decoder/ffmpeg: check libavutil version for AVDictionaryEntry

Require libavutil 51.5.0.
parent 8d45d0d1
...@@ -40,8 +40,12 @@ ...@@ -40,8 +40,12 @@
#include <libavcodec/avcodec.h> #include <libavcodec/avcodec.h>
#include <libavformat/avformat.h> #include <libavformat/avformat.h>
#include <libavformat/avio.h> #include <libavformat/avio.h>
#include <libavutil/avutil.h>
#include <libavutil/log.h> #include <libavutil/log.h>
#include <libavutil/mathematics.h> #include <libavutil/mathematics.h>
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51,5,0)
#include <libavutil/dict.h>
#endif
#endif #endif
#undef G_LOG_DOMAIN #undef G_LOG_DOMAIN
...@@ -612,7 +616,7 @@ ffmpeg_copy_metadata(struct tag *tag, ...@@ -612,7 +616,7 @@ ffmpeg_copy_metadata(struct tag *tag,
#endif #endif
const ffmpeg_tag_map tag_map) 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; AVDictionaryEntry *mt = NULL;
while ((mt = av_dict_get(m, tag_map.name, mt, 0)) != NULL) while ((mt = av_dict_get(m, tag_map.name, mt, 0)) != NULL)
......
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