atrac3plus: always initialize refwaves
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 12 Nov 2014 18:10:46 +0000 (19:10 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Fri, 14 Nov 2014 19:26:32 +0000 (20:26 +0100)
CC: libav-stable@libav.org
Bug-Id: CID 1163851

libavcodec/atrac3plus.c

index f337fab..7071596 100644 (file)
@@ -1575,7 +1575,7 @@ static void decode_tones_amplitude(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
 {
     int mode, sb, j, i, diff, maxdiff, fi, delta, pred;
     Atrac3pWaveParam *wsrc, *wref;
-    int refwaves[48];
+    int refwaves[48] = { 0 };
     Atrac3pWavesData *dst = ctx->channels[ch_num].tones_info;
     Atrac3pWavesData *ref = ctx->channels[0].tones_info;