Skip to content

Commit

Permalink
Fixed typo in IIPImage.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
ruven committed Sep 26, 2024
1 parent 143cc91 commit 573d914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IIPImage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ void IIPImage::testImageType()
static const unsigned char bbigtiff[4] = {0x49,0x49,0x2B,0x00}; // Big Endian BigTIFF

// Magic file signature for JPEG
static const unsigned char jpeg[3] = {0xFF,0xDA,0xFF};
static const unsigned char jpeg[3] = {0xFF,0xD8,0xFF};

// Compare our header sequence to our magic byte signatures
if( memcmp( header, j2k, 10 ) == 0 ) format = ImageEncoding::JPEG2000;
else if( memcmp( header, jpeg, 3 ) ) format = ImageEncoding::JPEG;
else if( memcmp( header, jpeg, 3 ) == 0 ) format = ImageEncoding::JPEG;
else if( memcmp( header, stdtiff, 3 ) == 0
|| memcmp( header, lsbtiff, 4 ) == 0 || memcmp( header, msbtiff, 4 ) == 0
|| memcmp( header, lbigtiff, 4 ) == 0 || memcmp( header, bbigtiff, 4 ) == 0 ){
Expand Down

0 comments on commit 573d914

Please sign in to comment.