ref: ec8bce7ffec4e9be72f1e2d0913a2d3e6ad07aca
parent: 92a8f0e9fe3c98358be7d8564db21fc4b1142d04
author: schellingb <14200249+schellingb@users.noreply.github.com>
date: Wed Jul 24 00:18:37 EDT 2024
Avoid crash when SF3 support is enabled when final trimmed sample buffer ends up at a different memory address (commonly happening on Android)
--- a/tsf.h
+++ b/tsf.h
@@ -963,7 +963,6 @@
// Trim the sample buffer down then return success (unless out of memory)
if (!(*pFloatBuffer = (float*)TSF_REALLOC(res, resNum * sizeof(float)))) *pFloatBuffer = res;
- *pFloatBuffer = res;
*pSmplCount = resNum;
return (res ? 1 : 0);
}