Commit 3fe2f733 authored by Max Kellermann's avatar Max Kellermann

decoder/ffmpeg: remove redundant audio stream check

parent ec24eb1d
......@@ -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);
}
......
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