Fix resampler stack overflow

This commit is contained in:
Xavier Arteaga 2021-05-11 12:45:49 +02:00 committed by Xavier Arteaga
parent 9517b78c03
commit 90c42bc9c3
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ static void resampler_fft_decimate(srsran_resampler_fft_t* q, const cf_t* input,
if (input) {
// Copy input samples
srsran_vec_cf_copy(q->in_buffer, &input[count], q->window_sz);
srsran_vec_cf_copy(q->in_buffer, &input[count], n);
// Pad zeroes
srsran_vec_cf_zero(&q->in_buffer[n], q->fft.size - n);