Fixes an assertion failure in SILK
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 9 May 2013 20:17:13 +0000 (16:17 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 9 May 2013 20:17:13 +0000 (16:17 -0400)
commitac76b1503f759201f03dc6acb7bf00bd39f560d3
tree309314526772b3be17d6b31ea92a51074e1991e4
parentc9f857ef60fcd6331a47627822ba07f5fb9dd1a0
Fixes an assertion failure in SILK

We stop the schur recursion before any reflection coefficient
goes outside of ]-1,1[ and we force reporting a residual energy
of at least 1.
Assertion was:
Fatal (internal) error in ../silk/fixed/noise_shape_analysis_FIX.c, line 290: assertion failed: nrg >= 0
triggered by:
opus_demo voip 16000 1 12500 -bandwidth WB -complexity 10 pl04f087.stp-crash out.pcm
silk/fixed/schur64_FIX.c
silk/fixed/schur_FIX.c