From be32b990f8820621a6c7e6c0064a0e10bf08b9b3 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Sat, 23 Jul 2011 21:05:47 +0000 Subject: 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 --- apps/codecs/mpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/codecs') 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) * sample seek position from the file offset, the sampling frequency and * the bitrate. As the saved position is exactly calculated the reverse way * 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 */ /* NOTE: current musepack format only allows for stereo files -- cgit v1.2.3