stream_id == MAX_STREAMS is invalid, since counting starts with 0.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17777 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-03-08 13:26:36 +00:00
parent 425573eb0d
commit cd94e7a740
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ static void dump_index(demuxer_t *demuxer, int stream_id)
if (verbose<=1)
return;
if (stream_id > MAX_STREAMS)
if (stream_id >= MAX_STREAMS)
return;
index = priv->index_table[stream_id];