summaryrefslogtreecommitdiff
path: root/firmware/mpeg.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-10-17 15:03:23 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-10-17 15:03:23 +0000
commit67a8bdce7c48f9cdda6f27b8dd39c29f6d113473 (patch)
tree4bd180db90645d3f0591ff1517725271478aeae0 /firmware/mpeg.c
parentb1c429e6fb9a2f6881af2c2dd48cfb17c4477fc4 (diff)
downloadrockbox-67a8bdce7c48f9cdda6f27b8dd39c29f6d113473.tar.gz
rockbox-67a8bdce7c48f9cdda6f27b8dd39c29f6d113473.zip
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
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r--firmware/mpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index ce0987caab..cc514baf8c 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -1533,7 +1533,8 @@ static void mpeg_thread(void)
1533 else 1533 else
1534 { 1534 {
1535 /* No TOC exists, estimate the new position */ 1535 /* No TOC exists, estimate the new position */
1536 newpos = (id3->filesize/id3->length)*newtime; 1536 newpos = (id3->filesize / (id3->length / 1000)) *
1537 (newtime / 1000);
1537 } 1538 }
1538 } 1539 }
1539 else if (id3->bpf && id3->tpf) 1540 else if (id3->bpf && id3->tpf)