Commit 8cdfa474 authored by Kostya Shishkov's avatar Kostya Shishkov
Browse files

Make Bink demuxer skip all zero audio tracks, not only the first one

Originally committed as revision 21908 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 7fa78f49
......@@ -197,7 +197,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
bink->current_track = 0;
}
if (bink->current_track < bink->num_audio_tracks) {
while (bink->current_track < bink->num_audio_tracks) {
uint32_t audio_size = get_le32(pb);
if (audio_size > bink->remain_packet_size - 4) {
av_log(s, AV_LOG_ERROR,
......
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