Skip to content

Commit 5b42284

Browse files
author
dirk
committed
Setting endianness of image earlier.
1 parent 8329c16 commit 5b42284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coders/psd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,7 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception)
16861686
/*
16871687
Read image header.
16881688
*/
1689+
image->endian=MSBEndian;
16891690
count=ReadBlob(image,4,(unsigned char *) psd_info.signature);
16901691
psd_info.version=ReadBlobMSBShort(image);
16911692
if ((count == 0) || (LocaleNCompare(psd_info.signature,"8BPS",4) != 0) ||
@@ -1842,7 +1843,6 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception)
18421843
" read composite only");
18431844
skip_layers=MagickTrue;
18441845
}
1845-
image->endian=MSBEndian;
18461846
if (length == 0)
18471847
{
18481848
if (image->debug != MagickFalse)

0 commit comments

Comments
 (0)