diff options
author | Magnus Holmgren <magnushol@gmail.com> | 2012-01-04 20:33:34 +0000 |
---|---|---|
committer | Magnus Holmgren <magnushol@gmail.com> | 2012-01-04 20:33:34 +0000 |
commit | fd5524ff92b49d9fb14d3feaca4d26d86a05b2b2 (patch) | |
tree | 517987fdc90d432b098868d604374a20c36ac9a9 /apps | |
parent | 61f999a16e601aa0cf61a342654b5574a626f7c7 (diff) | |
download | rockbox-fd5524ff92b49d9fb14d3feaca4d26d86a05b2b2.tar.gz rockbox-fd5524ff92b49d9fb14d3feaca4d26d86a05b2b2.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/aac.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
266 | framelength); | 266 | framelength); |
267 | sound_samples_done += framelength; | 267 | sound_samples_done += framelength; |
268 | /* Update the elapsed-time indicator */ | 268 | /* Update the elapsed-time indicator */ |
269 | elapsed_time = (sound_samples_done * 10) / (ci->id3->frequency / 100); | 269 | elapsed_time = ((uint64_t) sound_samples_done * 1000) / |
270 | ci->id3->frequency; | ||
270 | ci->set_elapsed(elapsed_time); | 271 | ci->set_elapsed(elapsed_time); |
271 | } | 272 | } |
272 | 273 | ||