changeset 7889:e44ec5681211

max header size increased
author arpi
date Wed, 23 Oct 2002 23:40:34 +0000
parents 5abf74c67ace
children d35f7bafc007
files libmpdemux/asfheader.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/asfheader.c	Wed Oct 23 23:15:25 2002 +0000
+++ b/libmpdemux/asfheader.c	Wed Oct 23 23:40:34 2002 +0000
@@ -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: