Commit 3717fcb7 authored by François Cartegnie's avatar François Cartegnie 🤞

codec: faad: fix off by one

parent a510715f
...@@ -514,7 +514,7 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block ) ...@@ -514,7 +514,7 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block )
p_dec->fmt_out.audio.i_physical_channels = 0; p_dec->fmt_out.audio.i_physical_channels = 0;
uint8_t pi_neworder_table[AOUT_CHAN_MAX]; 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; bool b_reorder = false;
if (p_dec->fmt_out.audio.channel_type == AUDIO_CHANNEL_TYPE_BITMAP) if (p_dec->fmt_out.audio.channel_type == AUDIO_CHANNEL_TYPE_BITMAP)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment