From 766e6011ba578ba9c9e97d25cebf4f7ffffa6787 Mon Sep 17 00:00:00 2001 From: arpi Date: Wed, 22 Aug 2001 16:24:00 +0000 Subject: printf added to seq. header error handlers git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1623 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpeg2/header.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'libmpeg2') diff --git a/libmpeg2/header.c b/libmpeg2/header.c index dd29cb035e..ab5e12923c 100644 --- a/libmpeg2/header.c +++ b/libmpeg2/header.c @@ -77,8 +77,10 @@ int header_process_sequence_header (picture_t * picture, uint8_t * buffer) 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 @@ int header_process_sequence_header (picture_t * picture, uint8_t * buffer) 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; -- cgit v1.2.3