summaryrefslogtreecommitdiffstats
path: root/media/libopus/silk/NLSF_stabilize.c
diff options
context:
space:
mode:
authorPale Moon <git-repo@palemoon.org>2018-05-28 09:00:46 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-05-28 13:53:03 +0200
commit8b9fe0e3582a0578720dc38b4ede57eac90e4594 (patch)
treef8ef026ce86dfac52cecbb147a22deb79cd30f27 /media/libopus/silk/NLSF_stabilize.c
parentbee00a4a3db557ffd950c9704558e8c7ef89b6dd (diff)
downloadUXP-8b9fe0e3582a0578720dc38b4ede57eac90e4594.tar
UXP-8b9fe0e3582a0578720dc38b4ede57eac90e4594.tar.gz
UXP-8b9fe0e3582a0578720dc38b4ede57eac90e4594.tar.lz
UXP-8b9fe0e3582a0578720dc38b4ede57eac90e4594.tar.xz
UXP-8b9fe0e3582a0578720dc38b4ede57eac90e4594.zip
Port libopus upstream patch.
Based on https://git.xiph.org/?p=opus.git;a=commitdiff;h=70a3d641b
Diffstat (limited to 'media/libopus/silk/NLSF_stabilize.c')
-rw-r--r--media/libopus/silk/NLSF_stabilize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libopus/silk/NLSF_stabilize.c b/media/libopus/silk/NLSF_stabilize.c
index 1fa1ea379..6ab73aed8 100644
--- a/media/libopus/silk/NLSF_stabilize.c
+++ b/media/libopus/silk/NLSF_stabilize.c
@@ -130,7 +130,7 @@ void silk_NLSF_stabilize(
/* Keep delta_min distance between the NLSFs */
for( i = 1; i < L; i++ )
- NLSF_Q15[i] = silk_max_int( NLSF_Q15[i], NLSF_Q15[i-1] + NDeltaMin_Q15[i] );
+ NLSF_Q15[i] = silk_max_int( NLSF_Q15[i], silk_ADD_SAT16( NLSF_Q15[i-1] + NDeltaMin_Q15[i] ) );
/* Last NLSF should be no higher than 1 - NDeltaMin[L] */
NLSF_Q15[L-1] = silk_min_int( NLSF_Q15[L-1], (1<<15) - NDeltaMin_Q15[L] );