OSDN Git Service

Make Bink demuxer skip all zero audio tracks, not only the first one
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 19 Feb 2010 22:10:04 +0000 (22:10 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 19 Feb 2010 22:10:04 +0000 (22:10 +0000)
Originally committed as revision 21908 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/bink.c

index 7d69387..5822875 100644 (file)
@@ -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,