summaryrefslogtreecommitdiff
path: root/celt
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-27 03:54:21 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2018-03-27 15:13:28 -0400
commitd01199be4cf3257478bd04ed028e3c589d306215 (patch)
tree8ffd1ef77e970e38659893caca2eb815ef604021 /celt
parentf0cea0d23767cd1dab1dd902622aeb7efa53b669 (diff)
downloadopus-d01199be4cf3257478bd04ed028e3c589d306215.tar.gz
two more asserts I forgot
Diffstat (limited to 'celt')
-rw-r--r--celt/bands.c1
1 files changed, 1 insertions, 0 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 */