mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-24 02:09:03 +03:00
avcodec/dcaenc: fill the LFE history from the LFE channel
Fixes: out of array read Fixes: HBKKtIKDkJ9e Found-by: Zheng Yu @ Depthfirst
This commit is contained in:
committed by
michaelni
parent
e723ebf0e2
commit
f391d256fd
@@ -969,7 +969,8 @@ static void shift_history(DCAEncContext *c, const int32_t *input)
|
||||
|
||||
for (k = 0; k < 512; k++)
|
||||
for (ch = 0; ch < c->channels; ch++) {
|
||||
const int chi = c->channel_order_tab[ch];
|
||||
const int chi = ch < c->fullband_channels ? c->channel_order_tab[ch]
|
||||
: lfe_index[c->channel_config];
|
||||
|
||||
c->history[ch][k] = input[k * c->channels + chi];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user