diff --git a/libs/audiographer/src/general/sr_converter.cc b/libs/audiographer/src/general/sr_converter.cc index 90de3e58d7..9b5fa801fe 100644 --- a/libs/audiographer/src/general/sr_converter.cc +++ b/libs/audiographer/src/general/sr_converter.cc @@ -78,6 +78,8 @@ SampleRateConverter::allocate_buffers (framecnt_t max_frames) if (!active) { return max_frames; } framecnt_t max_frames_out = (framecnt_t) ceil (max_frames * src_data.src_ratio); + max_frames_out -= max_frames_out % channels; + if (data_out_size < max_frames_out) { delete[] data_out;