mirror of
https://github.com/xiph/opus.git
synced 2025-06-01 08:07:41 +00:00
Fixes stack overflow for some custom modes
This only affects custom modes (builds with --enable-custom-modes) with frame sizes 2.5, 5, 10, and 20ms and sampling rates below 40 kHz. The problem does not affect normal use of Opus (using OpusEncoder/OpusDecoder) even when built with custom modes enabled, but only special applications that use OpusCustomEncoder/OpusCustomDecoder.
This commit is contained in:
parent
41a4c9515d
commit
a71ba10f89
1 changed files with 1 additions and 1 deletions
|
@ -1450,7 +1450,7 @@ void quant_all_bands(int encode, const CELTMode *m, int start, int end,
|
|||
if (encode && resynth)
|
||||
lowband_scratch = _lowband_scratch;
|
||||
else
|
||||
lowband_scratch = X_+M*eBands[m->nbEBands-1];
|
||||
lowband_scratch = X_+M*eBands[m->effEBands-1];
|
||||
ALLOC(X_save, resynth_alloc, celt_norm);
|
||||
ALLOC(Y_save, resynth_alloc, celt_norm);
|
||||
ALLOC(X_save2, resynth_alloc, celt_norm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue