# HG changeset patch # User arpi # Date 998497440 0 # Node ID a0d4fa6b9435a6b5acca674cc1c121bd76a4037f # Parent 24c6d8b06b26bef015dae19d583950bf0313eb55 printf added to seq. header error handlers diff -r 24c6d8b06b26 -r a0d4fa6b9435 libmpeg2/header.c --- a/libmpeg2/header.c Wed Aug 22 16:17:08 2001 +0000 +++ b/libmpeg2/header.c Wed Aug 22 16:24:00 2001 +0000 @@ -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@ML or MPEG1 */ - + if ((width > 768) || (height > 576)){ + printf("size restrictions for MP@ML or MPEG1 exceeded! (%dx%d)\n",width,height); +// return 1; /* size restrictions for MP@ML or MPEG1 */ + } + picture->coded_picture_width = width; picture->coded_picture_height = height;