diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-07-23 20:56:53 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-07-23 20:56:53 +0000 |
commit | 10a1e8a609d5c8ffdb74cdc75fada47acb998bc9 (patch) | |
tree | f5a6018d12b83e1c7df437bb9283ddb7c3a518a5 | |
parent | fa0f17d9b0a418e165dcebe449c7b3d8b3f7148f (diff) | |
download | rockbox-10a1e8a609d5c8ffdb74cdc75fada47acb998bc9.tar.gz rockbox-10a1e8a609d5c8ffdb74cdc75fada47acb998bc9.zip |
Fix musepack resume for resume positions > 7:30m.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30202 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/codecs/mpc.c | 2 |
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 |