[MPlayer-cvslog] r36688 - trunk/libmpdemux/demux_real.c

rtogni subversion at mplayerhq.hu
Tue Jan 21 23:27:00 CET 2014


Author: rtogni
Date: Tue Jan 21 23:27:00 2014
New Revision: 36688

Log:
Fix calculation of idx_streamid for audio index in case of packet errors.

Found by Coverity, reported by Reimar

Modified:
   trunk/libmpdemux/demux_real.c

Modified: trunk/libmpdemux/demux_real.c
==============================================================================
--- trunk/libmpdemux/demux_real.c	Tue Jan 21 21:51:24 2014	(r36687)
+++ trunk/libmpdemux/demux_real.c	Tue Jan 21 23:27:00 2014	(r36688)
@@ -648,7 +648,7 @@ static int demux_real_fill_buffer(demuxe
 		stream_seek(demuxer->stream, priv->index_table[idx_streamid][++priv->current_vpacket].offset);
 	    }
 	} else if ((unsigned)demuxer->audio->id < MAX_STREAMS) {
-	    idx_streamid = priv->is_mlti ? priv->mp2rm_streamid[demuxer->audio->id] : demuxer->video->id;
+	    idx_streamid = priv->is_mlti ? priv->mp2rm_streamid[demuxer->audio->id] : demuxer->audio->id;
 	    if (priv->current_apacket + 1 < priv->index_table_size[idx_streamid]) {
 		stream_seek(demuxer->stream, priv->index_table[idx_streamid][++priv->current_apacket].offset);
 	    }


More information about the MPlayer-cvslog mailing list