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:
parent
b1c429e6fb
commit
67a8bdce7c
1 changed files with 2 additions and 1 deletions
|
|
@ -1533,7 +1533,8 @@ static void mpeg_thread(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* No TOC exists, estimate the new position */
|
/* 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)
|
else if (id3->bpf && id3->tpf)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue