Add a safety check to ma_data_source_read_pcm_frames_within_range().

Public issue https://github.com/mackron/miniaudio/pull/1095
This commit is contained in:
David Reid
2026-02-15 08:11:57 +10:00
parent b33eb2ea4f
commit 1078dc292a
+4
View File
@@ -59262,6 +59262,10 @@ static ma_result ma_data_source_read_pcm_frames_within_range(ma_data_source* pDa
ma_uint64 framesRead = 0;
ma_bool32 loop = ma_data_source_is_looping(pDataSource);
if (pFramesRead != NULL) {
*pFramesRead = 0;
}
if (pDataSourceBase == NULL) {
return MA_AT_END;
}