diff options
author | Lynx3d <151539+Lynx3d@users.noreply.github.com> | 2021-09-20 16:01:19 +0200 |
---|---|---|
committer | Lynx3d <151539+Lynx3d@users.noreply.github.com> | 2021-09-21 08:49:56 +0200 |
commit | 6837564bc4148815784487c60518aef747ec897a (patch) | |
tree | f1e282cde61d5c9f46e11c1350e185c4043236f6 | |
parent | 67d6968f8ff00e9134a574ae919b7360f1d8ec94 (diff) | |
download | lcms2-6837564bc4148815784487c60518aef747ec897a.tar.gz |
Use correct input channel index
This fixes a crash introduced with 83a7ba5584be3a5c526602005de0880feda23bcb
Input channel count is always 3 here, while output channel count varies.
-rw-r--r-- | plugins/fast_float/src/fast_16_tethra.c | 2 | ||||
-rw-r--r-- | plugins/fast_float/src/fast_8_tethra.c | 2 | ||||
-rw-r--r-- | plugins/fast_float/src/fast_float_tethra.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/fast_float/src/fast_16_tethra.c b/plugins/fast_float/src/fast_16_tethra.c index 846eaf6..9fa7af4 100644 --- a/plugins/fast_float/src/fast_16_tethra.c +++ b/plugins/fast_float/src/fast_16_tethra.c @@ -293,7 +293,7 @@ void PerformanceEval16(struct _cmstransform_struct *CMMcargo, { res16 = *(const cmsUInt16Number*)ain; TO_OUTPUT(out[OutChan], res16); - ain += SourceIncrements[TotalOut]; + ain += SourceIncrements[3]; out[TotalOut] += DestIncrements[TotalOut]; } diff --git a/plugins/fast_float/src/fast_8_tethra.c b/plugins/fast_float/src/fast_8_tethra.c index 76091d4..3302e01 100644 --- a/plugins/fast_float/src/fast_8_tethra.c +++ b/plugins/fast_float/src/fast_8_tethra.c @@ -253,7 +253,7 @@ void PerformanceEval8(struct _cmstransform_struct *CMMcargo, if (ain) { *out[TotalOut] = *ain; - ain += SourceIncrements[TotalOut]; + ain += SourceIncrements[3]; out[TotalOut] += DestIncrements[TotalOut]; } diff --git a/plugins/fast_float/src/fast_float_tethra.c b/plugins/fast_float/src/fast_float_tethra.c index d57eedd..8f95a6d 100644 --- a/plugins/fast_float/src/fast_float_tethra.c +++ b/plugins/fast_float/src/fast_float_tethra.c @@ -212,7 +212,7 @@ void FloatCLUTEval(struct _cmstransform_struct* CMMcargo, if (ain) { *(cmsFloat32Number*)(out[TotalOut]) = *(cmsFloat32Number*)ain; - ain += SourceIncrements[TotalOut]; + ain += SourceIncrements[3]; out[TotalOut] += DestIncrements[TotalOut]; } } |