shithub: opus

Download patch

ref: 3b90ff8a33d8819b2d02c8b7ac733073007faf2f
parent: 5edcfaf6b166b16d40609e7faa393ec54128f8bb
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Tue Feb 13 09:09:07 EST 2018

Making sure importance[] is initialized even when we don't use dynalloc

--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -1110,6 +1110,9 @@
             tot_boost += boost_bits;
          }
       }
+   } else {
+      for (i=start;i<end;i++)
+         importance[i] = 13;
    }
    *tot_boost_ = tot_boost;
    RESTORE_STACK;