diff options
author | Maxim Poliakovski <max_pole@gmx.de> | 2014-01-01 23:25:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-02 02:25:37 +0100 |
commit | 4663a550f584d4438b4d511373a91116f84079d7 (patch) | |
tree | da26e6fc6cda44ad2dd2b92e30dd0d2e0b765b2a /libavcodec/atrac3plus.c | |
parent | 0f378d86321e4d14153a28d5e74c3ff0f99b1a20 (diff) | |
download | ffmpeg-4663a550f584d4438b4d511373a91116f84079d7.tar.gz |
atrac3plus: Add forgotten initialization of an internal struct
This patch also fixes trac ticket 3254.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/atrac3plus.c')
-rw-r--r-- | libavcodec/atrac3plus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/atrac3plus.c b/libavcodec/atrac3plus.c index 8bb1c60716..25c4f76014 100644 --- a/libavcodec/atrac3plus.c +++ b/libavcodec/atrac3plus.c @@ -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; |