Mercurial > mplayer.hg
changeset 36592:ee7c40d5c534
Fix calculation of idx_streamid for audio index in case of packet errors.
Found by Coverity, reported by Reimar
author | rtogni |
---|---|
date | Tue, 21 Jan 2014 22:27:00 +0000 |
parents | 15e799452bb0 |
children | daae52791ca3 |
files | libmpdemux/demux_real.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_real.c Tue Jan 21 20:51:24 2014 +0000 +++ b/libmpdemux/demux_real.c Tue Jan 21 22:27:00 2014 +0000 @@ -648,7 +648,7 @@ 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); }