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:
parent
fc2a14b0fa
commit
2ef4594916
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue