Commit a18321cb authored by kostya's avatar kostya

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21908 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7407d7b1
...@@ -197,7 +197,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -197,7 +197,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
bink->current_track = 0; 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); uint32_t audio_size = get_le32(pb);
if (audio_size > bink->remain_packet_size - 4) { if (audio_size > bink->remain_packet_size - 4) {
av_log(s, AV_LOG_ERROR, 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