[FFmpeg-cvslog] bink: decode audio track identifiers into AVStream.id

Peter Ross git
Sat Feb 26 04:51:54 CET 2011


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Sun Feb 20 13:15:38 2011 +1100| [6a22f82cc64cc080467d52d05abf59d649ba2ac3] | committer: Michael Niedermayer

bink: decode audio track identifiers into AVStream.id

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>
(cherry picked from commit 588a3ffd9687cbef60cc26d5b3a247b8ecdbf75b)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6a22f82cc64cc080467d52d05abf59d649ba2ac3
---

 libavformat/bink.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavformat/bink.c b/libavformat/bink.c
index 60f4081..79c3a25 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 */




More information about the ffmpeg-cvslog mailing list