From fd5524ff92b49d9fb14d3feaca4d26d86a05b2b2 Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Wed, 4 Jan 2012 20:33:34 +0000 Subject: AAC/M4A: Playback time wrapped after 2 hours and 42 minutes. Increase the wrap limit to about 27 hours. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31581 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/aac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/codecs/aac.c') diff --git a/apps/codecs/aac.c b/apps/codecs/aac.c index f1e81bad81..365dca804d 100644 --- a/apps/codecs/aac.c +++ b/apps/codecs/aac.c @@ -266,7 +266,8 @@ enum codec_status codec_run(void) framelength); sound_samples_done += framelength; /* Update the elapsed-time indicator */ - elapsed_time = (sound_samples_done * 10) / (ci->id3->frequency / 100); + elapsed_time = ((uint64_t) sound_samples_done * 1000) / + ci->id3->frequency; ci->set_elapsed(elapsed_time); } -- cgit v1.2.3