diff options
Diffstat (limited to 'lib/rbcodec/codecs/alac.c')
-rw-r--r-- | lib/rbcodec/codecs/alac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbcodec/codecs/alac.c b/lib/rbcodec/codecs/alac.c index 35c3645657..903ea2850e 100644 --- a/lib/rbcodec/codecs/alac.c +++ b/lib/rbcodec/codecs/alac.c | |||
@@ -104,7 +104,7 @@ enum codec_status codec_run(void) | |||
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | elapsedtime = (samplesdone*10)/(ci->id3->frequency/100); | 107 | elapsedtime = samplesdone * 1000LL / ci->id3->frequency; |
108 | ci->set_elapsed(elapsedtime); | 108 | ci->set_elapsed(elapsedtime); |
109 | 109 | ||
110 | /* The main decoding loop */ | 110 | /* The main decoding loop */ |
@@ -119,7 +119,7 @@ enum codec_status codec_run(void) | |||
119 | if (m4a_seek(&demux_res, &input_stream, | 119 | if (m4a_seek(&demux_res, &input_stream, |
120 | (param/10) * (ci->id3->frequency/100), | 120 | (param/10) * (ci->id3->frequency/100), |
121 | &samplesdone, (int *)&i)) { | 121 | &samplesdone, (int *)&i)) { |
122 | elapsedtime=(samplesdone*10)/(ci->id3->frequency/100); | 122 | elapsedtime=samplesdone*1000LL/ci->id3->frequency; |
123 | } | 123 | } |
124 | ci->set_elapsed(elapsedtime); | 124 | ci->set_elapsed(elapsedtime); |
125 | ci->seek_complete(); | 125 | ci->seek_complete(); |
@@ -140,7 +140,7 @@ enum codec_status codec_run(void) | |||
140 | 140 | ||
141 | /* Update the elapsed-time indicator */ | 141 | /* Update the elapsed-time indicator */ |
142 | samplesdone+=samplesdecoded; | 142 | samplesdone+=samplesdecoded; |
143 | elapsedtime=(samplesdone*10)/(ci->id3->frequency/100); | 143 | elapsedtime=samplesdone*1000LL/ci->id3->frequency; |
144 | ci->set_elapsed(elapsedtime); | 144 | ci->set_elapsed(elapsedtime); |
145 | 145 | ||
146 | i++; | 146 | i++; |