From b668cf335eb37f0467e4ecba377bb927a9855142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Walenciak?= Date: Wed, 6 Sep 2017 20:19:07 +0200 Subject: [PATCH] fixing BigTIFF's header expectations As defined in http://www.awaresystems.be/imaging/tiff/bigtiff.html --- bigtiff/parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigtiff/parse.cpp b/bigtiff/parse.cpp index 05271b87..8ceb2a05 100644 --- a/bigtiff/parse.cpp +++ b/bigtiff/parse.cpp @@ -386,7 +386,7 @@ int main(int argc,const char* argv[]) ; uint16_t magic = byteSwap2(buff,2,bSwap); offset = byteSwap4(buff,4,bSwap); - if ( buff[0] != buff[1] || (buff[0] != 'I' && buff[0] != 'M') || magic != 42 ) { + if ( buff[0] != buff[1] || (buff[0] != 'I' && buff[0] != 'M') || magic != 43 ) { std::cerr << "bSwap = " << bSwap << std::endl; std::cerr << "magic = " << magic << std::endl; std::cerr << "offset = " << offset << std::endl;