Fix buffer overflow issue causing loud audio after EOO. (#813)

ms-snr-gauge-2
Mooneer Salem 2025-01-16 09:08:43 -08:00 committed by GitHub
parent 9de0abbb12
commit 5a77cf1343
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ void RADETransmitStep::restartVocoder()
const int NUM_SAMPLES_SILENCE = 60 * getOutputSampleRate() / 1000;
int numEOOSamples = rade_n_tx_eoo_out(dv_);
RADE_COMP eooOut[numEOOSamples];
short eooOutShort[numEOOSamples];
short eooOutShort[numEOOSamples + NUM_SAMPLES_SILENCE];
rade_tx_eoo(dv_, eooOut);