decoder/ffmpeg: remove redundant audio stream check

This commit is contained in:
Max Kellermann 2014-12-19 10:20:45 +01:00
parent ec24eb1d8e
commit 3fe2f7337c

View File

@ -436,10 +436,10 @@ static void
FfmpegParseMetaData(const AVFormatContext &format_context, int audio_stream,
ReplayGainInfo &rg, MixRampInfo &mr)
{
FfmpegParseMetaData(*format_context.metadata, rg, mr);
assert(audio_stream >= 0);
if (audio_stream >= 0)
FfmpegParseMetaData(*format_context.streams[audio_stream],
FfmpegParseMetaData(*format_context.metadata, rg, mr);
FfmpegParseMetaData(*format_context.streams[audio_stream],
rg, mr);
}