summaryrefslogtreecommitdiff
path: root/apps/codecs/mpc.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-07-23 21:05:47 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-07-23 21:05:47 +0000
commitbe32b990f8820621a6c7e6c0064a0e10bf08b9b3 (patch)
treeb277fca1dfa7ee7504fbb769577325a7919112ad /apps/codecs/mpc.c
parent09885c34034c789e69af90f64a7421f0d17f0650 (diff)
downloadrockbox-be32b990f8820621a6c7e6c0064a0e10bf08b9b3.tar.gz
rockbox-be32b990f8820621a6c7e6c0064a0e10bf08b9b3.zip
Backport r30202. Fixes musepack resume for resume positions > 7:30m.
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_9@30203 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/mpc.c')
-rw-r--r--apps/codecs/mpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/mpc.c b/apps/codecs/mpc.c
index bbe2d9943b..7388799ee8 100644
--- a/apps/codecs/mpc.c
+++ b/apps/codecs/mpc.c
@@ -108,7 +108,7 @@ enum codec_status codec_run(void)
108 * sample seek position from the file offset, the sampling frequency and 108 * sample seek position from the file offset, the sampling frequency and
109 * the bitrate. As the saved position is exactly calculated the reverse way 109 * the bitrate. As the saved position is exactly calculated the reverse way
110 * there is no loss of information except rounding. */ 110 * there is no loss of information except rounding. */
111 samplesdone = 100 * ((mpc_uint64_t)(ci->id3->offset * frequency) / byterate); 111 samplesdone = 100 * (((mpc_uint64_t)ci->id3->offset * frequency) / byterate);
112 112
113 /* Set up digital signal processing for correct number of channels */ 113 /* Set up digital signal processing for correct number of channels */
114 /* NOTE: current musepack format only allows for stereo files 114 /* NOTE: current musepack format only allows for stereo files