From 5eb6f0db8cc1ecc00af2ef534078e4c65fdf978f Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Tue, 14 Mar 2017 14:29:20 +0200 Subject: Saturate additions in spectralChange This fixes a crash. --- libSBRenc/src/tran_det.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libSBRenc/src/tran_det.cpp b/libSBRenc/src/tran_det.cpp index 33ea60e..0e35ec3 100644 --- a/libSBRenc/src/tran_det.cpp +++ b/libSBRenc/src/tran_det.cpp @@ -187,12 +187,12 @@ static FIXP_DBL spectralChange(FIXP_DBL Energies[NUMBER_TIME_SLOTS_2304][MAX_FRE /* Sum up energies in first half */ for (i=start; i