commit | 6d2d5c424d2234b3665c7aa6f0f8a342d48a5ee0 | [log] [tgz] |
---|---|---|
author | Gregory Maxwell <greg@xiph.org> | Wed Apr 16 18:29:26 2014 -0700 |
committer | Gregory Maxwell <greg@xiph.org> | Wed Apr 16 18:29:26 2014 -0700 |
tree | e143d4ffab29ab7c95df257490c807eb7b91778a | |
parent | 4ae4bc61d033bd615bb6ddfe18f28994d02c51bc [diff] [blame] |
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);