summaryrefslogtreecommitdiff
path: root/src/libmpeg2/header.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmpeg2/header.c')
-rw-r--r--src/libmpeg2/header.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libmpeg2/header.c b/src/libmpeg2/header.c
index 9c4a8c694..cc2bf4022 100644
--- a/src/libmpeg2/header.c
+++ b/src/libmpeg2/header.c
@@ -77,16 +77,19 @@ 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) {
return 1; /* missing marker_bit */
+ }
height = (buffer[0] << 16) | (buffer[1] << 8) | buffer[2];
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 ("%d x %d\n", width, height); */
+ /*return 1;*/ /* size restrictions for MP@ML or MPEG1 */
+ }
picture->coded_picture_width = width;
picture->coded_picture_height = height;