[vlc-commits] codec: faad: fix off by one
Francois Cartegnie
git at videolan.org
Wed Feb 7 14:36:28 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Feb 7 11:28:36 2018 +0100| [c17cf9febfadcaf3bc751a5807c3de431da27361] | committer: Francois Cartegnie
codec: faad: fix off by one
(cherry picked from commit 3717fcb778f4c29ec360974ac133f5b667866648)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=c17cf9febfadcaf3bc751a5807c3de431da27361
---
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