diff options
Diffstat (limited to 'lib/rbcodec/codecs/mpc.c')
-rw-r--r-- | lib/rbcodec/codecs/mpc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbcodec/codecs/mpc.c b/lib/rbcodec/codecs/mpc.c index a856f6f3d1..44c286ba0a 100644 --- a/lib/rbcodec/codecs/mpc.c +++ b/lib/rbcodec/codecs/mpc.c | |||
@@ -140,7 +140,7 @@ enum codec_status codec_run(void) | |||
140 | samplesdone = 0; | 140 | samplesdone = 0; |
141 | } | 141 | } |
142 | 142 | ||
143 | elapsed_time = (samplesdone*10)/frequency; | 143 | elapsed_time = (samplesdone*10LL)/frequency; |
144 | } | 144 | } |
145 | 145 | ||
146 | ci->set_elapsed(elapsed_time); | 146 | ci->set_elapsed(elapsed_time); |
@@ -162,7 +162,7 @@ enum codec_status codec_run(void) | |||
162 | samplesdone = new_offset; | 162 | samplesdone = new_offset; |
163 | } | 163 | } |
164 | 164 | ||
165 | elapsed_time = (samplesdone*10)/frequency; | 165 | elapsed_time = (samplesdone*10LL)/frequency; |
166 | ci->set_elapsed(elapsed_time); | 166 | ci->set_elapsed(elapsed_time); |
167 | ci->seek_complete(); | 167 | ci->seek_complete(); |
168 | } | 168 | } |
@@ -182,7 +182,7 @@ enum codec_status codec_run(void) | |||
182 | frame.buffer + MPC_FRAME_LENGTH, | 182 | frame.buffer + MPC_FRAME_LENGTH, |
183 | frame.samples); | 183 | frame.samples); |
184 | samplesdone += frame.samples; | 184 | samplesdone += frame.samples; |
185 | elapsed_time = (samplesdone*10)/frequency; | 185 | elapsed_time = (samplesdone*10LL)/frequency; |
186 | ci->set_elapsed(elapsed_time); | 186 | ci->set_elapsed(elapsed_time); |
187 | /* Remark: rockbox offset is the file offset in bytes. So estimate | 187 | /* Remark: rockbox offset is the file offset in bytes. So estimate |
188 | * this offset from the samples, sampling frequency and bitrate */ | 188 | * this offset from the samples, sampling frequency and bitrate */ |