[Mplayer-cvslog] CVS: main/libmpeg2 header.c,1.3,1.4

Arpi of Ize arpi at mplayer.dev.hu
Wed Aug 22 18:24:03 CEST 2001


Update of /cvsroot/mplayer/main/libmpeg2
In directory mplayer:/var/tmp.root/cvs-serv10756

Modified Files:
	header.c 
Log Message:
printf added to seq. header error handlers

Index: header.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/header.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- header.c	7 Mar 2001 01:15:02 -0000	1.3
+++ header.c	22 Aug 2001 16:24:00 -0000	1.4
@@ -77,8 +77,10 @@
     int width, height;
     int i;
 
-    if ((buffer[6] & 0x20) != 0x20)
+    if ((buffer[6] & 0x20) != 0x20){
+	printf("missing marker bit!\n");
 	return 1;	/* missing marker_bit */
+    }
 
     height = (buffer[0] << 16) | (buffer[1] << 8) | buffer[2];
 
@@ -88,9 +90,11 @@
     width = ((height >> 12) + 15) & ~15;
     height = ((height & 0xfff) + 15) & ~15;
 
-    if ((width > 768) || (height > 576))
-	return 1;	/* size restrictions for MP at ML or MPEG1 */
-
+    if ((width > 768) || (height > 576)){
+	printf("size restrictions for MP at ML or MPEG1 exceeded! (%dx%d)\n",width,height);
+//	return 1;	/* size restrictions for MP at ML or MPEG1 */
+    }
+    
     picture->coded_picture_width = width;
     picture->coded_picture_height = height;
 




More information about the MPlayer-cvslog mailing list