1
0
Fork 0
forked from len0rd/rockbox

Fixed ff/rew rounding error (patch #783525 by Harold Toler)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3977 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2003-10-17 15:03:23 +00:00
parent b1c429e6fb
commit 67a8bdce7c

View file

@ -1533,7 +1533,8 @@ static void mpeg_thread(void)
else
{
/* No TOC exists, estimate the new position */
newpos = (id3->filesize/id3->length)*newtime;
newpos = (id3->filesize / (id3->length / 1000)) *
(newtime / 1000);
}
}
else if (id3->bpf && id3->tpf)