Only MAX_STREAMS streams are allowed (cid 115)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17811 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2006-03-11 16:42:46 +00:00
parent 9dd489f4bc
commit b2a5c98e76
1 changed files with 1 additions and 1 deletions

View File

@ -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];