Mercurial > mplayer.hg
diff libmpeg2/header.c @ 1622:a0d4fa6b9435
printf added to seq. header error handlers
| author | arpi |
|---|---|
| date | Wed, 22 Aug 2001 16:24:00 +0000 |
| parents | 727b1337f951 |
| children | d5a44e828ae4 |
line wrap: on
line diff
--- 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;
