[FFmpeg-devel] [PATCH] bink: decode audio track identifiers into AVStream.id
Peter Ross
pross
Sun Feb 20 03:15:38 CET 2011
---
libavformat/bink.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libavformat/bink.c b/libavformat/bink.c
index c134dd8..dfad6c2 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 = get_le32(pb);
}
/* frame index table */
--
1.7.1
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110220/e58a62b5/attachment.pgp>
More information about the ffmpeg-devel
mailing list