[FFmpeg-cvslog] avcodec/qdm2: initialize sign_bits

Michael Niedermayer git at videolan.org
Thu Jul 11 12:13:22 CEST 2013


ffmpeg | branch: release/2.0 | Michael Niedermayer <michaelni at gmx.at> | Wed Jul 10 16:21:33 2013 +0200| [37268dcc863eb297e5fdf815beeb397e220781a5] | committer: Michael Niedermayer

avcodec/qdm2: initialize sign_bits

Fixes non deterministic output

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

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=37268dcc863eb297e5fdf815beeb397e220781a5
---

 libavcodec/qdm2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/qdm2.c b/libavcodec/qdm2.c
index 43b6177..c56e79b 100644
--- a/libavcodec/qdm2.c
+++ b/libavcodec/qdm2.c
@@ -820,7 +820,7 @@ static int synthfilt_build_sb_samples(QDM2Context *q, GetBitContext *gb,
     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



More information about the ffmpeg-cvslog mailing list