sanity check

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8928 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-01-12 20:03:48 +00:00
parent 3a03ad6f92
commit 87f985afff
1 changed files with 4 additions and 0 deletions

View File

@ -639,6 +639,8 @@ got_video:
return 1;
}
if(stream_id<256){
if(demuxer->audio->id==-1 && demuxer->a_streams[stream_id]){
sh_audio_t *sh = demuxer->a_streams[stream_id];
demuxer->audio->id=stream_id;
@ -657,6 +659,8 @@ got_video:
goto got_video;
}
}
mp_msg(MSGT_DEMUX,MSGL_DBG2, "unknown stream id (%d)\n", stream_id);
stream_skip(demuxer->stream, len);
}// goto loop;