Commit 327d41c0 authored by Anton Khirnov's avatar Anton Khirnov Committed by Max Kellermann

decoder/ffmpeg: don't use deprecated CODEC_TYPE_AUDIO with new lavc

fixes build with lavc 53.
parent 05d8ce3b
ver 0.16.3 (2011/??/??)
* fix assertion failure in audio format mask parser
* decoder:
- ffmpeg: support lavc 53
ver 0.16.2 (2011/03/18)
......
......@@ -160,7 +160,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;
......
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