Fix compilation of libopus and libvorbis decoders.

This commit is contained in:
David Reid
2025-07-04 11:37:01 +10:00
parent 57423c6cea
commit 017eae73ac
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -70,11 +70,11 @@ static int ma_libopus_of_callback__seek(void* pUserData, ogg_int64_t offset, int
ma_seek_origin origin;
if (whence == SEEK_SET) {
origin = ma_seek_origin_start;
origin = MA_SEEK_SET;
} else if (whence == SEEK_END) {
origin = ma_seek_origin_end;
origin = MA_SEEK_END;
} else {
origin = ma_seek_origin_current;
origin = MA_SEEK_CUR;
}
result = pOpus->onSeek(pOpus->pReadSeekTellUserData, offset, origin);
@@ -80,11 +80,11 @@ static int ma_libvorbis_vf_callback__seek(void* pUserData, ogg_int64_t offset, i
ma_seek_origin origin;
if (whence == SEEK_SET) {
origin = ma_seek_origin_start;
origin = MA_SEEK_SET;
} else if (whence == SEEK_END) {
origin = ma_seek_origin_end;
origin = MA_SEEK_END;
} else {
origin = ma_seek_origin_current;
origin = MA_SEEK_CUR;
}
result = pVorbis->onSeek(pVorbis->pReadSeekTellUserData, offset, origin);