summaryrefslogtreecommitdiff
path: root/apps/codecs/shorten.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/shorten.c')
-rw-r--r--apps/codecs/shorten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/shorten.c b/apps/codecs/shorten.c
index 3edc143773..6053742562 100644
--- a/apps/codecs/shorten.c
+++ b/apps/codecs/shorten.c
@@ -96,7 +96,7 @@ next_track:
96 } 96 }
97 97
98 ci->id3->frequency = sc.sample_rate; 98 ci->id3->frequency = sc.sample_rate;
99 ci->configure(DSP_SET_FREQUENCY, (long *)(sc.sample_rate)); 99 ci->configure(DSP_SET_FREQUENCY, (long *)(long)(sc.sample_rate));
100 100
101 if (sc.sample_rate) { 101 if (sc.sample_rate) {
102 ci->id3->length = (sc.totalsamples / sc.sample_rate) * 1000; 102 ci->id3->length = (sc.totalsamples / sc.sample_rate) * 1000;