Suppress some coverity false positives.
diff --git a/celt/celt_encoder.c b/celt/celt_encoder.c
index 9423903..7387ad5 100644
--- 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);
diff --git a/celt/kiss_fft.c b/celt/kiss_fft.c
index e7e1130..0bf058c 100644
--- 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;