aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-11-12 19:10:46 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-14 20:26:32 +0100
commitd16ec1b6db25bc348b0d4800c9a0c9b7070e3710 (patch)
treedb59c0cb28faa2ad6fb14fa2289d9c96c7028de4
parent60e0ee7ca25bd3bea54043b0607efe4cd51acaf3 (diff)
downloadffmpeg-d16ec1b6db25bc348b0d4800c9a0c9b7070e3710.tar.gz
atrac3plus: always initialize refwaves
CC: libav-stable@libav.org Bug-Id: CID 1163851
-rw-r--r--libavcodec/atrac3plus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac3plus.c b/libavcodec/atrac3plus.c
index f337fabc8d..7071596a8c 100644
--- a/libavcodec/atrac3plus.c
+++ b/libavcodec/atrac3plus.c
@@ -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;