aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-30 16:12:43 -0700
committerChris Robinson <[email protected]>2019-06-30 16:40:08 -0700
commitdb026454f28f93fe7c38dc84a79813a59afeb1d0 (patch)
treea6500fa97c8e61cabe3c0609514d10107225fce5
parent0fc30151f2053346005ce9f15da38363a9e62313 (diff)
Fix Y channel offset for the UHJ encoder
-rw-r--r--Alc/uhjfilter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/uhjfilter.cpp b/Alc/uhjfilter.cpp
index c2657f9f..55999647 100644
--- a/Alc/uhjfilter.cpp
+++ b/Alc/uhjfilter.cpp
@@ -75,7 +75,7 @@ void Uhj2Encoder::encode(FloatBufferLine &LeftOut, FloatBufferLine &RightOut, Fl
ASSUME(todo > 0);
/* D = 0.6554516*Y */
- std::transform(yinput+base, yinput+todo, std::begin(temp),
+ std::transform(yinput, yinput+todo, std::begin(temp),
[](const float y) noexcept -> float { return 0.6554516f*y; });
allpass_process(&mFilter1_Y[0], temp, temp, Filter1CoeffSqr[0], todo);
allpass_process(&mFilter1_Y[1], temp, temp, Filter1CoeffSqr[1], todo);