Don't crash when a decoding seek callback is unavailable.

This commit is contained in:
David Reid
2026-03-12 06:14:00 +10:00
parent 4c082afe71
commit 6922366bb1
+4
View File
@@ -62865,6 +62865,10 @@ static ma_result ma_decoder_seek_bytes(ma_decoder* pDecoder, ma_int64 byteOffset
{
MA_ASSERT(pDecoder != NULL);
if (pDecoder->onSeek != NULL) {
return MA_NOT_IMPLEMENTED;
}
return pDecoder->onSeek(pDecoder, byteOffset, origin);
}