[Mplayer-cvslog] CVS: main/libmpdemux aviheader.c,1.39,1.40

Atmosfear atmos4 at mplayer.dev.hu
Sun Feb 10 01:16:48 CET 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv17208/libmpdemux

Modified Files:
	aviheader.c 
Log Message:
Don't read index for -forceidx and -nodix (speedup with bad media and not needed anyway)


Index: aviheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/aviheader.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- aviheader.c	17 Jan 2002 21:55:17 -0000	1.39
+++ aviheader.c	10 Feb 2002 00:16:46 -0000	1.40
@@ -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);
     }




More information about the MPlayer-cvslog mailing list