fixes build with lavc 53.
---
src/decoder/ffmpeg_decoder_plugin.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/decoder/ffmpeg_decoder_plugin.c
b/src/decoder/ffmpeg_decoder_plugin.c
index c0bb8d6..2d4039f 100644
--- a/src/decoder/ffmpeg_decoder_plugin.c
+++ b/src/decoder/ffmpeg_decoder_plugin.c
@@ -142,7 +142,11 @@ ffmpeg_find_audio_stream(const AVFormatContext
*format_context)
{
for (unsigned i = 0; i < format_context->nb_streams; ++i)
if (format_context->streams[i]->codec->codec_type ==
+#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 64, 0)
+ AVMEDIA_TYPE_AUDIO)
+#else
CODEC_TYPE_AUDIO)
+#endif
return i;
return -1;
--
1.7.4.4
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team