mirror of
https://github.com/mpv-player/mpv
synced 2025-03-07 22:57:42 +00:00
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:
parent
412bac90a8
commit
2ccf7d2a45
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user