Add the noreturn attribute on the assert functions to aid static analysis, improve...
[opus.git] / celt / quant_bands.c
index 9927a18..638cd11 100644 (file)
@@ -450,6 +450,10 @@ void unquant_coarse_energy(const CELTMode *m, int start, int end, opus_val16 *ol
          int qi;
          opus_val32 q;
          opus_val32 tmp;
+         /* It would be better to express this invariant as a
+            test on C at function entry, but that isn't enough
+            to make the static analyzer happy. */
+         celt_assert(c<2);
          tell = ec_tell(dec);
          if(budget-tell>=15)
          {