mirror of https://github.com/mpv-player/mpv
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:
parent
425573eb0d
commit
cd94e7a740
|
@ -162,7 +162,7 @@ static void dump_index(demuxer_t *demuxer, int stream_id)
|
||||||
if (verbose<=1)
|
if (verbose<=1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (stream_id > MAX_STREAMS)
|
if (stream_id >= MAX_STREAMS)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
index = priv->index_table[stream_id];
|
index = priv->index_table[stream_id];
|
||||||
|
|
Loading…
Reference in New Issue