aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-05-09 21:17:09 +0200
committerMax Kellermann <max@duempel.org>2011-05-09 21:24:18 +0200
commitc6a72a14ac391b0c835cd195656c67aecc519b64 (patch)
tree10f87108142b852391220406485368665f7c564b
parentc74edd0e339a81d55003ac4f8690eb4bd384fc6f (diff)
downloadmpd-c6a72a14ac391b0c835cd195656c67aecc519b64.tar.gz
mpd-c6a72a14ac391b0c835cd195656c67aecc519b64.tar.xz
mpd-c6a72a14ac391b0c835cd195656c67aecc519b64.zip
decoder/ffpmeg: don't use av_metadata_conv() in ffmpeg 0.7
It's a no-op and deprecated.
Diffstat (limited to '')
-rw-r--r--src/decoder/ffmpeg_decoder_plugin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/decoder/ffmpeg_decoder_plugin.c b/src/decoder/ffmpeg_decoder_plugin.c
index 068f64b83..757442a3b 100644
--- a/src/decoder/ffmpeg_decoder_plugin.c
+++ b/src/decoder/ffmpeg_decoder_plugin.c
@@ -473,7 +473,9 @@ ffmpeg_stream_tag(struct input_stream *is)
? f->duration / AV_TIME_BASE
: 0;
+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(52,101,0)
av_metadata_conv(f, NULL, f->iformat->metadata_conv);
+#endif
for (unsigned i = 0; i < sizeof(ffmpeg_tag_maps)/sizeof(ffmpeg_tag_map); i++) {
int idx = ffmpeg_find_audio_stream(f);