diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2007-11-08 15:05:40 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2007-11-08 15:05:40 +0000 |
commit | 7e4b161188a45be88549ebebb6c96dd28dafe2ac (patch) | |
tree | 3c1c3bb561cf1d0d72f916acf837e615e48b21cf /libavformat | |
parent | 543b3965f18cc321936b6401e0e71ec0853be7a4 (diff) | |
download | ffmpeg-7e4b161188a45be88549ebebb6c96dd28dafe2ac.tar.gz |
Change parse indexer.
Patch by Ronald S. Bultje: rsbultje gmail com
Originally committed as revision 10960 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rmdec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c index 3f781d5659..eb3a44d8ce 100644 --- a/libavformat/rmdec.c +++ b/libavformat/rmdec.c @@ -629,7 +629,7 @@ resync: goto resync; else { rm->sub_packet_cnt = 0; - rm->audio_stream_num = i; + rm->audio_stream_num = st->index; rm->audio_pkt_cnt = h * w / st->codec->block_align - 1; // Release first audio packet av_new_packet(pkt, st->codec->block_align); @@ -639,7 +639,7 @@ resync: } } else if (st->codec->codec_id == CODEC_ID_AAC) { int x; - rm->audio_stream_num = i; + rm->audio_stream_num = st->index; rm->sub_packet_cnt = (get_be16(pb) & 0xf0) >> 4; if (rm->sub_packet_cnt) { for (x = 0; x < rm->sub_packet_cnt; x++) @@ -661,7 +661,7 @@ resync: goto resync; } - pkt->stream_index = i; + pkt->stream_index = st->index; #if 0 if (st->codec->codec_type == CODEC_TYPE_VIDEO) { |