Making sure importance[] is initialized even when we don't use dynalloc
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 13 Feb 2018 19:09:07 +0000 (14:09 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Tue, 13 Feb 2018 19:09:40 +0000 (14:09 -0500)
celt/celt_encoder.c

index e41bf0d..aeb3543 100644 (file)
@@ -1110,6 +1110,9 @@ static opus_val16 dynalloc_analysis(const opus_val16 *bandLogE, const opus_val16
             tot_boost += boost_bits;
          }
       }
+   } else {
+      for (i=start;i<end;i++)
+         importance[i] = 13;
    }
    *tot_boost_ = tot_boost;
    RESTORE_STACK;