changeset 5675:bbbedc311b93 libavformat

Make Bink demuxer skip all zero audio tracks, not only the first one
author kostya
date Fri, 19 Feb 2010 22:10:04 +0000
parents 1f89b2117edf
children 5eb579e14926
files bink.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bink.c	Fri Feb 19 21:12:46 2010 +0000
+++ b/bink.c	Fri Feb 19 22:10:04 2010 +0000
@@ -197,7 +197,7 @@
         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,