[vlc-commits] codec: faad: fix off by one

Francois Cartegnie git at videolan.org
Wed Feb 7 11:42:58 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb  7 11:28:36 2018 +0100| [3717fcb778f4c29ec360974ac133f5b667866648] | committer: Francois Cartegnie

codec: faad: fix off by one

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3717fcb778f4c29ec360974ac133f5b667866648
---

 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)



More information about the vlc-commits mailing list