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

Arpi of Ize arpi at mplayer.dev.hu
Thu Jan 17 22:55:22 CET 2002


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

Modified Files:
	aviheader.c 
Log Message:
more movi_end mess

Index: aviheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/aviheader.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- aviheader.c	14 Jan 2002 18:30:28 -0000	1.38
+++ aviheader.c	17 Jan 2002 21:55:17 -0000	1.39
@@ -150,7 +150,10 @@
       }
       break;
     }
-    case ckidAVINEWINDEX: if(index_mode){
+    case ckidAVINEWINDEX:
+    if(demuxer->movi_end>stream_tell(demuxer->stream))
+	demuxer->movi_end=stream_tell(demuxer->stream); // fixup movi-end
+    if(index_mode){
       int i;
       priv->idx_size=size2>>4;
       mp_msg(MSGT_HEADER,MSGL_V,"Reading INDEX block, %d chunks for %ld frames\n",




More information about the MPlayer-cvslog mailing list