Merge pull request #8185 from Themaister/master

Sinc: memset the resampler buffer.
This commit is contained in:
Twinaphex 2019-02-06 06:38:46 +01:00 committed by GitHub
commit c582b40525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -662,6 +662,8 @@ static void *resampler_sinc_new(const struct resampler_config *config,
if (!re->main_buffer)
goto error;
memset(re->main_buffer, 0, sizeof(float) * elems);
re->phase_table = re->main_buffer;
re->buffer_l = re->main_buffer + phase_elems;
re->buffer_r = re->buffer_l + 2 * re->taps;