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
This commit is contained in:
Magnus Holmgren 2012-01-04 20:33:34 +00:00
parent 61f999a16e
commit fd5524ff92

View file

@ -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);
}