Skip to content

Commit

Permalink
Fix copy/paste error in special case unpack routine
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <[email protected]>
  • Loading branch information
kdt3rd committed Aug 28, 2021
1 parent 0b854d2 commit f9b4dad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/OpenEXRCore/unpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ unpack_16bit_3chan_planar (exr_decode_pipeline_t* decode)
{
in0 = (const uint16_t*) srcbuffer;
in1 = in0 + w;
in2 = in1 + 1;
in2 = in1 + w;
srcbuffer += w * 6; // 3 * sizeof(uint16_t), avoid type conversion
/* specialise to memcpy if we can */
#if EXR_HOST_IS_NOT_LITTLE_ENDIAN
Expand Down Expand Up @@ -471,7 +471,7 @@ unpack_half_to_float_3chan_planar (exr_decode_pipeline_t* decode)
{
in0 = (const uint16_t*) srcbuffer;
in1 = in0 + w;
in2 = in1 + 1;
in2 = in1 + w;
srcbuffer += w * 6; // 3 * sizeof(uint16_t), avoid type conversion
/* specialise to memcpy if we can */
half_to_float_buffer ((float*) out0, in0, w);
Expand Down

0 comments on commit f9b4dad

Please sign in to comment.