From 6922366bb141cd40d52eb18614af3c21eafd4c1a Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 12 Mar 2026 06:14:00 +1000 Subject: [PATCH] Don't crash when a decoding seek callback is unavailable. --- miniaudio.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index 7f219a59..2db19330 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -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); }