summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-11 16:42:46 +0000
committerrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-11 16:42:46 +0000
commitb2a5c98e76c4e600d46e53f62c36c533482d089b (patch)
treec19ba5d825507debe0e824795b9d503ce88dffc1 /libmpdemux
parent9dd489f4bcc5b5559e7c5f00449c3dade27ea57b (diff)
downloadmpv-b2a5c98e76c4e600d46e53f62c36c533482d089b.tar.bz2
mpv-b2a5c98e76c4e600d46e53f62c36c533482d089b.tar.xz
Only MAX_STREAMS streams are allowed (cid 115)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17811 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_real.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_real.c b/libmpdemux/demux_real.c
index c517c7fa5c..39dd5fb75c 100644
--- a/libmpdemux/demux_real.c
+++ b/libmpdemux/demux_real.c
@@ -1040,7 +1040,7 @@ got_video:
return 1;
}
-if(stream_id<256){
+if(stream_id<MAX_STREAMS){
if(demuxer->audio->id==-1 && demuxer->a_streams[stream_id]){
sh_audio_t *sh = demuxer->a_streams[stream_id];