Change a stream indexer.
authorRonald S. Bultje <rsbultje@gmail.com>
Thu, 8 Nov 2007 15:09:37 +0000 (15:09 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Thu, 8 Nov 2007 15:09:37 +0000 (15:09 +0000)
Patch by Ronald S. Bultje: rsbultje gmail com

Originally committed as revision 10962 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rmdec.c

index 7e782aeaeb7c5d07542abb062c7c904c581dc317..2f64a9427a27a35c22674708bc4e3fc0f3a61a27 100644 (file)
@@ -655,7 +655,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt)
         }
         rm->audio_pkt_cnt--;
         pkt->flags = 0;
-        pkt->stream_index = rm->audio_stream_num;
+        pkt->stream_index = st->index;
     } else if (rm->old_format) {
         st = s->streams[0];
         if (st->codec->codec_id == CODEC_ID_RA_288) {