Sinc: memset the resampler buffer.

No idea how this survived asan and valgrind over these years ...
This commit is contained in:
Themaister 2019-02-05 23:34:56 +01:00
parent f5343c83eb
commit 5e7513ad60

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;