forked from len0rd/rockbox
codecs: Fix elapsed time calculation for large files
In particular, this solves seeking glitches seen in ~6 hr mp3 files. (Patch taken from Igor Poretsky's tree) Change-Id: Id65b6726146b6d2d1a223e90b88e401d1b2d597a
This commit is contained in:
parent
0120ecd651
commit
20b91a83d3
7 changed files with 15 additions and 17 deletions
|
|
@ -570,7 +570,7 @@ next_page:
|
|||
ci->set_offset((long) ci->curpos);
|
||||
|
||||
ci->set_elapsed((samplerate == 0) ? 0 :
|
||||
cur_granule * 1000 / samplerate);
|
||||
cur_granule * 1000LL / samplerate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue