Mercurial > mplayer.hg
changeset 1622:a0d4fa6b9435
printf added to seq. header error handlers
author | arpi |
---|---|
date | Wed, 22 Aug 2001 16:24:00 +0000 |
parents | 24c6d8b06b26 |
children | 5908dd344067 |
files | libmpeg2/header.c |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
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;