From 8ff4a5435614c85e43a3514157537dab80ecb3e7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 15 Mar 2016 09:07:03 -0700 Subject: Properly handle negative matrix values and fix decoder initialization --- Alc/bformatdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/bformatdec.c') diff --git a/Alc/bformatdec.c b/Alc/bformatdec.c index d917f803..fff693bc 100644 --- a/Alc/bformatdec.c +++ b/Alc/bformatdec.c @@ -252,7 +252,7 @@ static void apply_row(ALfloat *out, const ALfloat *mtx, ALfloat (*restrict in)[B for(c = 0;c < inchans;c++) { ALfloat gain = mtx[c]; - if(!(gain > GAIN_SILENCE_THRESHOLD)) + if(!(fabsf(gain) > GAIN_SILENCE_THRESHOLD)) continue; for(i = 0;i < todo;i++) out[i] += in[c][i] * gain; -- cgit v1.2.3