Fix T98216: OpenEXR: No difference in file size between ZIP, DWAA, DWAB.

Check in code would not expect major version of OpenEXR > 2.

Investigated by Jesse Yurkovich (@deadpin), thanks!
This commit is contained in:
Bastien Montagne 2022-05-18 09:51:11 +02:00
parent 77f2cb1686
commit a820ba0d36
Notes: blender-bot 2023-02-14 04:07:50 +01:00
Referenced by issue #98216, OpenEXR: No difference in file size between ZIP, DWAA, DWAB
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ static void openexr_header_compression(Header *header, int compression)
case R_IMF_EXR_CODEC_B44A:
header->compression() = B44A_COMPRESSION;
break;
#if OPENEXR_VERSION_MAJOR >= 2 && OPENEXR_VERSION_MINOR >= 2
#if OPENEXR_VERSION_MAJOR > 2 || (OPENEXR_VERSION_MAJOR >= 2 && OPENEXR_VERSION_MINOR >= 2)
case R_IMF_EXR_CODEC_DWAA:
header->compression() = DWAA_COMPRESSION;
break;