fix SDR++ server crash at high samplerates #1326

This commit is contained in:
AlexandreRouma
2024-02-13 18:39:11 +01:00
parent 61ffb3e6bf
commit 650a61930c
3 changed files with 7 additions and 3 deletions

View File

@@ -12,6 +12,10 @@ namespace dsp::compression {
void init(stream<complex_t>* in, PCMType pcmType) {
_pcmType = pcmType;
// Set the output buffer size to the max size of a complex buffer + 8 bytes for the header
out.setBufferSize(STREAM_BUFFER_SIZE*sizeof(complex_t) + 8);
base_type::init(in);
}