Browse code

avcodec/qdm2: initialize sign_bits

Fixes non deterministic output

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8f09957194b8d7a3ea909647e22eaf1389b6f5c4)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2013/07/10 23:21:33
Showing 1 changed files
... ...
@@ -768,7 +768,7 @@ static int synthfilt_build_sb_samples (QDM2Context *q, GetBitContext *gb, int le
768 768
     float type34_div = 0;
769 769
     float type34_predictor;
770 770
     float samples[10];
771
-    int sign_bits[16];
771
+    int sign_bits[16] = {0};
772 772
 
773 773
     if (length == 0) {
774 774
         // If no data use noise