summaryrefslogtreecommitdiff
path: root/firmware/mpeg.c
diff options
context:
space:
mode:
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)