Commit 570ea1ad authored by benoit's avatar benoit

Change parse indexer.

Patch by Ronald S. Bultje: rsbultje gmail com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10960 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 850ea68e
...@@ -629,7 +629,7 @@ resync: ...@@ -629,7 +629,7 @@ resync:
goto resync; goto resync;
else { else {
rm->sub_packet_cnt = 0; 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; rm->audio_pkt_cnt = h * w / st->codec->block_align - 1;
// Release first audio packet // Release first audio packet
av_new_packet(pkt, st->codec->block_align); av_new_packet(pkt, st->codec->block_align);
...@@ -639,7 +639,7 @@ resync: ...@@ -639,7 +639,7 @@ resync:
} }
} else if (st->codec->codec_id == CODEC_ID_AAC) { } else if (st->codec->codec_id == CODEC_ID_AAC) {
int x; int x;
rm->audio_stream_num = i; rm->audio_stream_num = st->index;
rm->sub_packet_cnt = (get_be16(pb) & 0xf0) >> 4; rm->sub_packet_cnt = (get_be16(pb) & 0xf0) >> 4;
if (rm->sub_packet_cnt) { if (rm->sub_packet_cnt) {
for (x = 0; x < rm->sub_packet_cnt; x++) for (x = 0; x < rm->sub_packet_cnt; x++)
...@@ -661,7 +661,7 @@ resync: ...@@ -661,7 +661,7 @@ resync:
goto resync; goto resync;
} }
pkt->stream_index = i; pkt->stream_index = st->index;
#if 0 #if 0
if (st->codec->codec_type == CODEC_TYPE_VIDEO) { if (st->codec->codec_type == CODEC_TYPE_VIDEO) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment