Mercurial > mplayer.hg
changeset 4621:16cbaff638ac
Don't read index for -forceidx and -nodix (speedup with bad media and not needed anyway)
author | atmos4 |
---|---|
date | Sun, 10 Feb 2002 00:16:46 +0000 |
parents | 9ad42931f595 |
children | e3a9fae516e4 |
files | libmpdemux/aviheader.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/aviheader.c Sun Feb 10 00:07:34 2002 +0000 +++ b/libmpdemux/aviheader.c Sun Feb 10 00:16:46 2002 +0000 @@ -54,7 +54,8 @@ 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); }