diff options
author | Gregory Maxwell <greg@xiph.org> | 2011-10-05 02:26:33 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-10-05 04:20:51 +0400 |
commit | 49979211180d4ceef59146405f5685d550323677 (patch) | |
tree | 1b79cf9be4228e0dcb3f3edba2a12450166a0e81 /silk/process_NLSFs.c | |
parent | 32d5c2d6d4f7ea22a2e59649e6f26c376d9dfbe0 (diff) |
Move useInterpolatedNLSFs assert from encode_indices.c to silk/process_NLSFs.c.
There were assert failures for test cases with mode switching and LBRR enabled.
(some similar problems remain)
Tim identified that the assert was falsely firing while encoding LBRR frames but
the flag doesn't matter while encoding the bitstream it only actually matters in
silk/process_NLSFs.c.
Diffstat (limited to 'silk/process_NLSFs.c')
-rw-r--r-- | silk/process_NLSFs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/silk/process_NLSFs.c b/silk/process_NLSFs.c index 2c87f013..e077627c 100644 --- a/silk/process_NLSFs.c +++ b/silk/process_NLSFs.c @@ -48,6 +48,7 @@ void silk_process_NLSFs( silk_assert( psEncC->speech_activity_Q8 >= 0 ); silk_assert( psEncC->speech_activity_Q8 <= SILK_FIX_CONST( 1.0, 8 ) ); + silk_assert( psEncC->useInterpolatedNLSFs == 1 || psEncC->indices.NLSFInterpCoef_Q2 == ( 1 << 2 ) ); /***********************/ /* Calculate mu values */ |