fix: did not update the conversion length to the correct new length

This commit is contained in:
2025-03-25 11:18:10 +01:00
parent c729ae3a6b
commit df65ea5df4

View File

@@ -91,7 +91,7 @@ static int8_t audio_cvt(audiodevice const* dev, SDL_AudioSpec const* spec, uint8
}
// update output
*len = cvt.len; // set the length to the new length after the conversion
*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__);