summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/mpa/decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mpa/decode.c b/modules/mpa/decode.c
index 2d4a25d..aadf43c 100644
--- a/modules/mpa/decode.c
+++ b/modules/mpa/decode.c
@@ -171,9 +171,9 @@ int mpa_decode_frm(struct audec_state *ads, int16_t *sampv, size_t *sampc,
}
if (ads->resampler) {
- intermediate_len = n / 2 / ads->channels;
+ intermediate_len = (uint32_t)(n / 2 / ads->channels);
/* intermediate_len counts samples per channel */
- out_len = *sampc / 2;
+ out_len = (uint32_t)(*sampc / 2);
result=speex_resampler_process_interleaved_int(
ads->resampler, ads->intermediate_buffer,