Skip to content

Commit

Permalink
Fix bugs in ImfCheckFile.cpp:readDeepTile()
Browse files Browse the repository at this point in the history
Both the Slice and DeepSlice constructors take the fill value after the x/y
sampling rates, not before. (Caught via MSVC's more stringent warnings.)
  • Loading branch information
mmp committed Oct 29, 2021
1 parent 586d829 commit 10ebe0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/OpenEXRUtil/ImfCheckFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,8 @@ readDeepTile(T& in,bool reduceMemory , bool reduceTime)
reinterpret_cast<char*>(&localSampleCount[0][0]),
sizeof (unsigned int) * 1,
sizeof (unsigned int) * width,
1, 1, // x/ysampling
0.0, // fill
1 , 1, // x/ysampling
true, // relative x
true // relative y
)
Expand All @@ -584,8 +584,8 @@ readDeepTile(T& in,bool reduceMemory , bool reduceTime)
pointerSize * 1,
pointerSize * width,
sampleSize,
1, 1,
0.0,
1 , 1,
true,
true
) );
Expand Down

0 comments on commit 10ebe0b

Please sign in to comment.