[Mplayer-cvslog] CVS: main/libmpdemux asfheader.c,1.34,1.35

Arpi of Ize arpi at mplayerhq.hu
Thu Oct 24 01:40:37 CEST 2002


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

Modified Files:
	asfheader.c 
Log Message:
max header size increased


Index: asfheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asfheader.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- asfheader.c	7 Jul 2002 16:17:45 -0000	1.34
+++ asfheader.c	23 Oct 2002 23:40:34 -0000	1.35
@@ -128,7 +128,7 @@
 extern void print_video_header(BITMAPINFOHEADER *h);
 
 int read_asf_header(demuxer_t *demuxer){
-  static unsigned char buffer[1024];
+  static unsigned char buffer[2048];
   uint32_t* streams = NULL;
   int audio_streams=0;
   int video_streams=0;
@@ -158,9 +158,10 @@
 	mp_msg(MSGT_HEADER,MSGL_V,"unk1: %lX  unk2: %X\n",(unsigned long)streamh.unk1,(unsigned int)streamh.unk2);
 	mp_msg(MSGT_HEADER,MSGL_V,"FILEPOS=0x%X\n",stream_tell(demuxer->stream));
       }
-      if(streamh.type_size>1024 || streamh.stream_size>1024){
-          mp_msg(MSGT_HEADER,MSGL_FATAL,"FATAL: header size bigger than 1024 bytes!\n"
-              "Please contact mplayer authors, and upload/send this file.\n");
+      if(streamh.type_size>2048 || streamh.stream_size>2048){
+          mp_msg(MSGT_HEADER,MSGL_FATAL,"FATAL: header size bigger than 2048 bytes (%d,%d)!\n"
+              "Please contact mplayer authors, and upload/send this file.\n",
+	      (int)streamh.type_size,(int)streamh.stream_size);
           return 0;
       }
       // type-specific data:




More information about the MPlayer-cvslog mailing list