From 77b0eb5a98b04fc092b20d0e2994a1c60ab5323e Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 25 Mar 2025 11:25:07 +0100 Subject: [PATCH] fix: use cvt.len_cvt for new length instead of cvt.len --- src/window/audio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window/audio.c b/src/window/audio.c index a4d9030..68afe46 100644 --- a/src/window/audio.c +++ b/src/window/audio.c @@ -92,6 +92,7 @@ static int8_t audio_cvt(audiodevice const* dev, SDL_AudioSpec const* spec, uint8 // update output + *len = cvt.len_cvt; // set the length to the new length after the conversion *bufptr = realloc(cvt.buf, cvt.len_cvt); // reallocate the buffer to the new size if (*bufptr == NULL) { warn("%s:%u something went wrong whilst shrinking the audio buffer whilst converting!", __FILE_NAME__, __LINE__);