diff options
author | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-10 00:16:46 +0000 |
---|---|---|
committer | atmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-10 00:16:46 +0000 |
commit | 2ccf7d2a4566b75a961b816fe468adc277d42161 (patch) | |
tree | 91fff988c9b70ba1daddbd4e35a063ed21e6e734 /libmpdemux | |
parent | 412bac90a8c06e5ac296827d1716d7f4f5d84941 (diff) |
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
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/aviheader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/aviheader.c b/libmpdemux/aviheader.c index 9be2f8f3d8..13947dd19f 100644 --- a/libmpdemux/aviheader.c +++ b/libmpdemux/aviheader.c @@ -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); } |