mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Sinc: memset the resampler buffer.
No idea how this survived asan and valgrind over these years ...
This commit is contained in:
parent
f5343c83eb
commit
5e7513ad60
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user