summaryrefslogtreecommitdiff
path: root/celt/pitch.c
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2011-10-03 21:07:39 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2011-10-03 21:38:21 -0400
commit5d5875a93a5c15566c6dfbadf7180858705af517 (patch)
tree8f6c8a9f4d430a5291d8efc38e2c395cb8f65d5f /celt/pitch.c
parent4a7c9859cbea913e2d024d523cc10f2bd955d540 (diff)
downloadopus-5d5875a93a5c15566c6dfbadf7180858705af517.tar.gz
Add the noreturn attribute on the assert functions to aid static analysis, improve test_repacketizer error handling, and silence 19 clang static analysis errors with additional assertions.
Diffstat (limited to 'celt/pitch.c')
-rw-r--r--celt/pitch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/celt/pitch.c b/celt/pitch.c
index f6a97f9b..30c43c56 100644
--- a/celt/pitch.c
+++ b/celt/pitch.c
@@ -166,6 +166,8 @@ void pitch_search(const opus_val16 * restrict x_lp, opus_val16 * restrict y,
SAVE_STACK;
+ celt_assert(len>0);
+ celt_assert(max_pitch>0);
lag = len+max_pitch;
ALLOC(x_lp4, len>>2, opus_val16);