Update dr_wav and dr_mp3.

This commit is contained in:
David Reid
2025-11-29 08:36:33 +10:00
parent 4a8467852a
commit 787318fd8f
+4 -1
View File
@@ -82499,7 +82499,7 @@ MA_PRIVATE ma_bool32 ma_dr_wav__on_seek_memory_write(void* pUserData, int offset
newCursor = (ma_int64)pWav->memoryStreamWrite.dataSize;
} else {
MA_DR_WAV_ASSERT(!"Invalid seek origin");
return MA_INVALID_ARGS;
return MA_FALSE;
}
newCursor += offset;
if (newCursor < 0) {
@@ -94685,6 +94685,7 @@ static ma_bool32 ma_dr_mp3_init_internal(ma_dr_mp3* pMP3, ma_dr_mp3_read_proc on
((ma_uint32)ape[25] << 8) |
((ma_uint32)ape[26] << 16) |
((ma_uint32)ape[27] << 24);
if (32 + tagSize < streamLen) {
streamEndOffset -= 32 + tagSize;
streamLen -= 32 + tagSize;
if (onMeta != NULL) {
@@ -94699,6 +94700,8 @@ static ma_bool32 ma_dr_mp3_init_internal(ma_dr_mp3* pMP3, ma_dr_mp3_read_proc on
}
}
}
} else {
}
}
}
} else {