aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2011-02-20 13:15:38 +1100
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-25 15:24:35 -0500
commit588a3ffd9687cbef60cc26d5b3a247b8ecdbf75b (patch)
treed8e6e994d2e4799cca9a5c310a394f481363501b /libavformat
parentccfcddb3f287545a20831f266c2a2f734d6a9f31 (diff)
downloadffmpeg-588a3ffd9687cbef60cc26d5b3a247b8ecdbf75b.tar.gz
bink: decode audio track identifiers into AVStream.id
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/bink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/bink.c b/libavformat/bink.c
index 60f4081bfb..79c3a25ec5 100644
--- a/libavformat/bink.c
+++ b/libavformat/bink.c
@@ -143,7 +143,8 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
ast->codec->channels = flags & BINK_AUD_STEREO ? 2 : 1;
}
- url_fskip(pb, 4 * bink->num_audio_tracks);
+ for (i = 0; i < bink->num_audio_tracks; i++)
+ s->streams[i + 1]->id = avio_rl32(pb);
}
/* frame index table */