]> granicus.if.org Git - php/commitdiff
- Little speed up
authorMarcus Boerger <helly@php.net>
Thu, 24 Feb 2005 20:22:40 +0000 (20:22 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 24 Feb 2005 20:22:40 +0000 (20:22 +0000)
ext/standard/image.c

index 42bc40b1b94e5a3ec008dcaba7ba99e1b812e188..e80c5944272e49cfcb2d129a93c7bcc98d9a1329 100644 (file)
@@ -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) {