From 89d75d5c9c34dbf416e3e205970040c33e36ccd6 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 24 Feb 2005 20:22:40 +0000 Subject: [PATCH] - Little speed up --- ext/standard/image.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/standard/image.c b/ext/standard/image.c index 42bc40b1b9..e80c594427 100644 --- a/ext/standard/image.c +++ b/ext/standard/image.c @@ -628,12 +628,19 @@ static struct gfxinfo *php_handle_jpc(php_stream * stream TSRMLS_DC) result->height = php_read4(stream TSRMLS_CC); /* Xsiz */ result->width = php_read4(stream TSRMLS_CC); /* Ysiz */ +#if MBO_0 dummy_int = php_read4(stream TSRMLS_CC); /* XOsiz */ dummy_int = php_read4(stream TSRMLS_CC); /* YOsiz */ dummy_int = php_read4(stream TSRMLS_CC); /* XTsiz */ dummy_int = php_read4(stream TSRMLS_CC); /* YTsiz */ dummy_int = php_read4(stream TSRMLS_CC); /* XTOsiz */ dummy_int = php_read4(stream TSRMLS_CC); /* YTOsiz */ +#else + if (php_stream_seek(stream, 24, SEEK_CUR)) { + efree(result); + return NULL; + } +#endif result->channels = php_read2(stream TSRMLS_CC); /* Csiz */ if (result->channels < 0 || result->channels > 256) { -- 2.50.1