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 25, 2024
1 parent 143cc91 commit 547a115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IIPImage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void IIPImage::testImageType()

// 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 547a115

Please sign in to comment.