1
0
Fork 0
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:
Solomon Peachy 2018-10-15 17:59:13 -04:00
parent 0120ecd651
commit 20b91a83d3
7 changed files with 15 additions and 17 deletions

View file

@ -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);
}
}
}