Author: peterhillman <peterh@wetafx.co.nz>
Date:   Thu Dec 3 10:53:32 2020 +1300
Subject: Handle xsampling and bad seekg() calls in exrcheck
Origin: https://github.com/AcademySoftwareFoundation/openexr/pull/872
Bug-Debian: https://bugs.debian.org/988240

diff --git a/OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp b/OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp
index f5abe9c6..94452905 100644
--- a/OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp
+++ b/OpenEXR/IlmImf/ImfDeepTiledInputFile.cpp
@@ -960,7 +960,7 @@ DeepTiledInputFile::compatibilityInitialize(OPENEXR_IMF_INTERNAL_NAMESPACE::IStr
 void
 DeepTiledInputFile::multiPartInitialize(InputPartData* part)
 {
-    if (isTiled(part->header.type()) == false)
+    if (part->header.type() != DEEPTILE)
         THROW (IEX_NAMESPACE::ArgExc, "Can't build a DeepTiledInputFile from a part of type " << part->header.type());

     _data->_streamData = part->mutex;
