From 8cdfa4747bb3ccfd12367e1f41d9504669396acf Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 19 Feb 2010 22:10:04 +0000 Subject: [PATCH] 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 --- libavformat/bink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/bink.c b/libavformat/bink.c index 7d69387deb..5822875356 100644 --- a/libavformat/bink.c +++ b/libavformat/bink.c @@ -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,