Add the noreturn attribute on the assert functions to aid static analysis, improve...
[opus.git] / celt / pitch.c
index f6a97f9..30c43c5 100644 (file)
@@ -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);