Mercurial > libavformat.hg
changeset 2721:1bfd6498a13c libavformat
Change parse indexer.
Patch by Ronald S. Bultje: rsbultje gmail com
author | benoit |
---|---|
date | Thu, 08 Nov 2007 15:05:40 +0000 |
parents | 0c8ec988645c |
children | 65dcef6d93e1 |
files | rmdec.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rmdec.c Thu Nov 08 11:22:29 2007 +0000 +++ b/rmdec.c Thu Nov 08 15:05:40 2007 +0000 @@ -629,7 +629,7 @@ 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 @@ } } 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 @@ goto resync; } - pkt->stream_index = i; + pkt->stream_index = st->index; #if 0 if (st->codec->codec_type == CODEC_TYPE_VIDEO) {