1
0
Fork 0
forked from len0rd/rockbox

Fix musepack resume for resume positions > 7:30m.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30202 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2011-07-23 20:56:53 +00:00
parent fa0f17d9b0
commit 10a1e8a609

View file

@ -108,7 +108,7 @@ enum codec_status codec_run(void)
* sample seek position from the file offset, the sampling frequency and * sample seek position from the file offset, the sampling frequency and
* the bitrate. As the saved position is exactly calculated the reverse way * the bitrate. As the saved position is exactly calculated the reverse way
* there is no loss of information except rounding. */ * there is no loss of information except rounding. */
samplesdone = 100 * ((mpc_uint64_t)(ci->id3->offset * frequency) / byterate); samplesdone = 100 * (((mpc_uint64_t)ci->id3->offset * frequency) / byterate);
/* Set up digital signal processing for correct number of channels */ /* Set up digital signal processing for correct number of channels */
/* NOTE: current musepack format only allows for stereo files /* NOTE: current musepack format only allows for stereo files