Skip to content

Commit

Permalink
reduce B44 _tmpBufferSize (was allocating two bytes per byte) (#843)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
  • Loading branch information
peterhillman committed Oct 7, 2020
1 parent 7abf780 commit 85fd638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenEXR/IlmImf/ImfB44Compressor.cpp
Expand Up @@ -494,7 +494,7 @@ B44Compressor::B44Compressor
//

_tmpBuffer = new unsigned short
[checkArraySize (uiMult (maxScanLineSize, numScanLines),
[checkArraySize (uiMult (maxScanLineSize / sizeof(unsigned short), numScanLines),
sizeof (unsigned short))];

const ChannelList &channels = header().channels();
Expand Down

0 comments on commit 85fd638

Please sign in to comment.