[FFmpeg-cvslog] atrac3plus: always initialize refwaves

Vittorio Giovara git at videolan.org
Sat Nov 15 02:25:55 CET 2014


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Nov 12 19:10:46 2014 +0100| [d16ec1b6db25bc348b0d4800c9a0c9b7070e3710] | committer: Vittorio Giovara

atrac3plus: always initialize refwaves

CC: libav-stable at libav.org
Bug-Id: CID 1163851

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

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

diff --git a/libavcodec/atrac3plus.c b/libavcodec/atrac3plus.c
index f337fab..7071596 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;
 



More information about the ffmpeg-cvslog mailing list