From: Marcus Boerger Date: Thu, 24 Feb 2005 20:22:40 +0000 (+0000) Subject: - Little speed up X-Git-Tag: RELEASE_0_3~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89d75d5c9c34dbf416e3e205970040c33e36ccd6;p=php - Little speed up --- 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) {