[Mplayer-cvslog] CVS: main/libmpdemux demux_viv.c,1.5,1.6

Alex Beregszaszi alex at mplayer.dev.hu
Sat Nov 10 13:36:08 CET 2001


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

Modified Files:
	demux_viv.c 
Log Message:
checking for EOF

Index: demux_viv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_viv.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- demux_viv.c	9 Nov 2001 22:17:35 -0000	1.5
+++ demux_viv.c	10 Nov 2001 12:36:03 -0000	1.6
@@ -174,7 +174,7 @@
     mp_msg(MSGT_DEMUX,MSGL_V,"Checking for VIVO\n");
     
     c=stream_read_char(demuxer->stream);
-    if(c) return 0;
+    if(c==-256) return 0;
     len=0;
     while((c=stream_read_char(demuxer->stream))>=0x80){
 	len+=0x80*(c-0x80);
@@ -238,6 +238,8 @@
   demux->filepos=stream_tell(demux->stream);
   
   c=stream_read_char(demux->stream);
+  if (c == -256) /* EOF */
+    return 0;
 //  printf("c=%02X\n",c);
   switch(c&0xF0){
   case 0x00: // header - skip it!




More information about the MPlayer-cvslog mailing list