Bug Fix: Fix minimp3 seek position
Some checks are pending
Check if Cog buildable / Build Universal Cog.app (push) Waiting to run
Some checks are pending
Check if Cog buildable / Build Universal Cog.app (push) Waiting to run
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
184e1f14c9
commit
ac93ff038e
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;
|
frame = totalFrames;
|
||||||
|
|
||||||
if(seekable) {
|
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) {
|
if(error < 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue