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

Arpi of Ize arpi at mplayer.dev.hu
Mon Jan 14 19:30:31 CET 2002


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

Modified Files:
	aviheader.c 
Log Message:
workaround for broken 'muvi' chunks

Index: aviheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/aviheader.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- aviheader.c	27 Dec 2001 00:37:03 -0000	1.37
+++ aviheader.c	14 Jan 2002 18:30:28 -0000	1.38
@@ -50,9 +50,10 @@
     mp_msg(MSGT_HEADER,MSGL_DBG2,"LIST %.4s  len=%d\n",(char *) &id,len);
     if(id==listtypeAVIMOVIE){
       // found MOVI header
-      demuxer->movi_start=stream_tell(demuxer->stream);
+      if(!demuxer->movi_start) demuxer->movi_start=stream_tell(demuxer->stream);
       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)
       len=(len+1)&(~1);
       stream_skip(demuxer->stream,len);




More information about the MPlayer-cvslog mailing list