avcodec/qdm2: initialize sign_bits
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Jul 2013 14:21:33 +0000 (16:21 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Jul 2013 17:05:23 +0000 (19:05 +0200)
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>
libavcodec/qdm2.c

index 68a920e..4c045eb 100644 (file)
@@ -768,7 +768,7 @@ static int synthfilt_build_sb_samples (QDM2Context *q, GetBitContext *gb, int le
     float type34_div = 0;
     float type34_predictor;
     float samples[10];
-    int sign_bits[16];
+    int sign_bits[16] = {0};
 
     if (length == 0) {
         // If no data use noise