Bug Fix: Fix minimp3 seek position

Seek offset is scaled by the number of channels in the file. Oops again.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-23 20:22:27 -07:00
parent fc2a14b0fa
commit 2ef4594916

View file

@ -293,7 +293,7 @@ static int mp3_seek_callback(uint64_t position, void *user_data) {
frame = totalFrames;
if(seekable) {
int error = mp3dec_ex_seek(&_decoder_ex, frame);
int error = mp3dec_ex_seek(&_decoder_ex, frame * _decoder_ex.info.channels);
if(error < 0) {
return -1;
}