diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-03-27 10:54:21 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2018-03-27 22:13:28 +0300 |
commit | d01199be4cf3257478bd04ed028e3c589d306215 (patch) | |
tree | 8ffd1ef77e970e38659893caca2eb815ef604021 | |
parent | f0cea0d23767cd1dab1dd902622aeb7efa53b669 (diff) |
two more asserts I forgot
-rw-r--r-- | celt/bands.c | 1 | ||||
-rw-r--r-- | silk/float/burg_modified_FLP.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/celt/bands.c b/celt/bands.c index 52228f7d..f7bb66a9 100644 --- a/celt/bands.c +++ b/celt/bands.c @@ -1492,6 +1492,7 @@ void quant_all_bands(int encode, const CELTMode *m, int start, int end, 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 */ diff --git a/silk/float/burg_modified_FLP.c b/silk/float/burg_modified_FLP.c index ea5dc25a..756b76a3 100644 --- a/silk/float/burg_modified_FLP.c +++ b/silk/float/burg_modified_FLP.c @@ -52,7 +52,7 @@ silk_float silk_burg_modified_FLP( /* O returns residual energy 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 ); |