]> granicus.if.org Git - php/commitdiff
Fixed bug #29424 (width and height inverted for JPEG2000 files).
authorIlia Alshanetsky <iliaa@php.net>
Sun, 6 Mar 2005 17:03:43 +0000 (17:03 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 6 Mar 2005 17:03:43 +0000 (17:03 +0000)
ext/standard/image.c

index a049284dfb3c8fe136f7f261ae6e06dbb91c8bae..9960f6fff06e7426dacf10a9109647a4016bd2e2 100644 (file)
@@ -625,8 +625,8 @@ static struct gfxinfo *php_handle_jpc(php_stream * stream TSRMLS_DC)
 
        dummy_short = php_read2(stream TSRMLS_CC); /* Lsiz */
        dummy_short = php_read2(stream TSRMLS_CC); /* Rsiz */
-       result->height = php_read4(stream TSRMLS_CC); /* Xsiz */
        result->width = php_read4(stream TSRMLS_CC); /* Ysiz */
+       result->height = php_read4(stream TSRMLS_CC); /* Xsiz */
 
 #if MBO_0
        php_read4(stream TSRMLS_CC); /* XOsiz */