aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-15 02:14:03 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-15 02:17:54 +0100
commit53ab7846eeb6cf91bd33dc17598bd5a66b8e3497 (patch)
tree1f4427a9186c4617c5962098f24c85047c884317
parent85929b9caa90553f9e1bbd7a3ead03ef2ade4d71 (diff)
parentd16ec1b6db25bc348b0d4800c9a0c9b7070e3710 (diff)
downloadffmpeg-53ab7846eeb6cf91bd33dc17598bd5a66b8e3497.tar.gz
Merge commit 'd16ec1b6db25bc348b0d4800c9a0c9b7070e3710'
* commit 'd16ec1b6db25bc348b0d4800c9a0c9b7070e3710': atrac3plus: always initialize refwaves The initialization is not needed, the array is never read before being written to. Its merged anyway for robustness in respect to future changes Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/atrac3plus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac3plus.c b/libavcodec/atrac3plus.c
index f7a42cc93b..575a49373d 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;