From 3717fcb778f4c29ec360974ac133f5b667866648 Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Wed, 7 Feb 2018 11:28:36 +0100 Subject: [PATCH] codec: faad: fix off by one --- modules/codec/faad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/codec/faad.c b/modules/codec/faad.c index 15243e1d8a..8de1f7824b 100644 --- a/modules/codec/faad.c +++ b/modules/codec/faad.c @@ -514,7 +514,7 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block ) p_dec->fmt_out.audio.i_physical_channels = 0; uint8_t pi_neworder_table[AOUT_CHAN_MAX]; - uint32_t pi_faad_channels_positions[FAAD_CHANNEL_ID_COUNT] = {0}; + uint32_t pi_faad_channels_positions[FAAD_CHANNEL_ID_COUNT + 1] = {0}; bool b_reorder = false; if (p_dec->fmt_out.audio.channel_type == AUDIO_CHANNEL_TYPE_BITMAP) -- GitLab