ref: d01199be4cf3257478bd04ed028e3c589d306215
parent: f0cea0d23767cd1dab1dd902622aeb7efa53b669
author: Jean-Marc Valin <[email protected]>
date: Mon Mar 26 23:54:21 EDT 2018
two more asserts I forgot
--- a/celt/bands.c
+++ b/celt/bands.c
@@ -1492,6 +1492,7 @@
else
Y = NULL;
N = M*eBands[i+1]-M*eBands[i];
+ celt_assert(N > 0);
tell = ec_tell_frac(ec);
/* Compute how many bits we want to allocate to this band */
--- a/silk/float/burg_modified_FLP.c
+++ b/silk/float/burg_modified_FLP.c
@@ -52,7 +52,7 @@
double CAf[ SILK_MAX_ORDER_LPC + 1 ], CAb[ SILK_MAX_ORDER_LPC + 1 ];
double Af[ SILK_MAX_ORDER_LPC ];
- silk_assert( subfr_length * nb_subfr <= MAX_FRAME_SIZE );
+ celt_assert( subfr_length * nb_subfr <= MAX_FRAME_SIZE );
/* Compute autocorrelations, added over subframes */
C0 = silk_energy_FLP( x, nb_subfr * subfr_length );