ref: 6d2d5c424d2234b3665c7aa6f0f8a342d48a5ee0
parent: 4ae4bc61d033bd615bb6ddfe18f28994d02c51bc
author: Gregory Maxwell <[email protected]>
date: Wed Apr 16 14:29:26 EDT 2014
Suppress some coverity false positives.
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -1644,6 +1644,7 @@
diff += MULT16_16(mask, 1+2*i-mask_end);
}
}
+ celt_assert(count>0);
mask_avg = DIV32_16(mask_avg,count);
mask_avg += QCONST16(.2f, DB_SHIFT);
diff = diff*6/(C*(mask_end-1)*(mask_end+1)*mask_end);
--- a/celt/kiss_fft.c
+++ b/celt/kiss_fft.c
@@ -457,7 +457,7 @@
{
st->twiddles = base->twiddles;
st->shift = 0;
- while (nfft<<st->shift != base->nfft && st->shift < 32)
+ while (st->shift < 32 && nfft<<st->shift != base->nfft)
st->shift++;
if (st->shift>=32)
goto fail;