diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-22 16:24:00 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-22 16:24:00 +0000 |
commit | 766e6011ba578ba9c9e97d25cebf4f7ffffa6787 (patch) | |
tree | 8b0a3f1a708ff498f8c6c705ffb34b7ca4d26ac2 | |
parent | 1bffc4a2ee6edf241e6707c08c195cae5d68e705 (diff) | |
download | mpv-766e6011ba578ba9c9e97d25cebf4f7ffffa6787.tar.bz2 mpv-766e6011ba578ba9c9e97d25cebf4f7ffffa6787.tar.xz |
printf added to seq. header error handlers
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1623 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpeg2/header.c | 12 |
1 files changed, 8 insertions, 4 deletions
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; |