aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-01-12 18:45:18 +0100
committerMax Kellermann <max@duempel.org>2012-01-12 18:45:18 +0100
commit39d52762d15fadb892d2d9163bc6b763e99b70f8 (patch)
tree853e0297eb8704974c1a29207251d09a13067fe5 /src/decoder
parent8d45d0d104c9f946cc8260d0fd335d34bf160e2c (diff)
downloadmpd-39d52762d15fadb892d2d9163bc6b763e99b70f8.tar.gz
mpd-39d52762d15fadb892d2d9163bc6b763e99b70f8.tar.xz
mpd-39d52762d15fadb892d2d9163bc6b763e99b70f8.zip
decoder/ffmpeg: check libavutil version for AVDictionaryEntry
Require libavutil 51.5.0.
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/ffmpeg_decoder_plugin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/decoder/ffmpeg_decoder_plugin.c b/src/decoder/ffmpeg_decoder_plugin.c
index 91376576a..8f4cf8c12 100644
--- a/src/decoder/ffmpeg_decoder_plugin.c
+++ b/src/decoder/ffmpeg_decoder_plugin.c
@@ -40,8 +40,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
#endif
#undef G_LOG_DOMAIN
@@ -612,7 +616,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)