Skip to content

Commit

Permalink
TiledInputFile only supports regular TILEDIMAGE types, not DEEPTILE o…
Browse files Browse the repository at this point in the history
…r unknown tiled types. Enforce for both InputFile and InputPart API. Fixes #266, Related to #70
  • Loading branch information
peterhillman committed Jul 16, 2019
1 parent 849c616 commit ece5552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenEXR/IlmImf/ImfInputFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ InputFile::initialize ()
_data->compositor->addSource(_data->dsFile);
}

else if (isTiled (_data->version))
else if (isTiled (_data->version) && !isNonImage(_data->version))
{
_data->isTiled = true;
_data->lineOrder = _data->header.lineOrder();
Expand Down Expand Up @@ -573,7 +573,7 @@ InputFile::initialize ()
_data->compositor = new CompositeDeepScanLine;
_data->compositor->addSource(_data->dsFile);
}
else if (isTiled (_data->header.type()))
else if (_data->header.hasType() && _data->header.type()==TILEDIMAGE)
{
_data->isTiled = true;
_data->lineOrder = _data->header.lineOrder();
Expand Down

0 comments on commit ece5552

Please sign in to comment.