[Mplayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.25,1.26

Arpi of Ize arpi at mplayer.dev.hu
Tue Nov 13 22:11:13 CET 2001


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

Modified Files:
	demux_mov.c 
Log Message:
ignore mov detection if first chunk bad

Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- demux_mov.c	9 Nov 2001 17:00:12 -0000	1.25
+++ demux_mov.c	13 Nov 2001 21:11:10 -0000	1.26
@@ -158,6 +158,7 @@
 
 int mov_check_file(demuxer_t* demuxer){
     int flags=0;
+    int no=0;
     mov_priv_t* priv=malloc(sizeof(mov_priv_t));
     
     mp_msg(MSGT_DEMUX,MSGL_V,"Checking for MOV\n");
@@ -187,11 +188,14 @@
 	  /* unused, if you edit a mov, you can use space provided by free atoms (redefining it) */
 	  break;
 	case MOV_FOURCC('w','i','d','e'):
+	  break;
 	default:
+	  if(no==0) return 0; // first chunk is bad!
 	  id = bswap_32(id);
 	  mp_msg(MSGT_DEMUX,MSGL_V,"MOV: unknown chunk: %.4s %d\n",&id,(int)len);
 	}
 	if(!stream_skip(demuxer->stream,len-8)) break;
+	++no;
     }
     
     if(flags==1)




More information about the MPlayer-cvslog mailing list