Don't read index for -forceidx and -nodix (speedup with bad media and not needed anyway)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4622 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2002-02-10 00:16:46 +00:00
parent 412bac90a8
commit 2ccf7d2a45
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ while(1){
demuxer->movi_end=demuxer->movi_start+len;
mp_msg(MSGT_HEADER,MSGL_V,"Found movie at 0x%X - 0x%X\n",(int)demuxer->movi_start,(int)demuxer->movi_end);
if(demuxer->stream->end_pos) demuxer->movi_end=demuxer->stream->end_pos;
if(index_mode==-2) break; // reading from non-seekable source (stdin)
if(index_mode==-2 || index_mode==2 || index_mode==0)
break; // reading from non-seekable source (stdin) or forced index or no index forced
len=(len+1)&(~1);
stream_skip(demuxer->stream,len);
}