1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-15 12:44:47 +02:00

atrac3plus: Add forgotten initialization of an internal struct

This patch also fixes trac ticket 3254.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Maxim Poliakovski 2014-01-01 23:25:15 +01:00 committed by Michael Niedermayer
parent 0f378d8632
commit 4663a550f5

View File

@ -1700,6 +1700,10 @@ static int decode_tones_info(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
int ch_num, i, ret;
int band_has_tones[16];
for (ch_num = 0; ch_num < num_channels; ch_num++)
memset(ctx->channels[ch_num].tones_info, 0,
sizeof(*ctx->channels[ch_num].tones_info) * ATRAC3P_SUBBANDS);
ctx->waves_info->tones_present = get_bits1(gb);
if (!ctx->waves_info->tones_present)
return 0;