summaryrefslogtreecommitdiff
path: root/modules/mpa/decode.c
diff options
context:
space:
mode:
authorChristian Hoene <christian.hoene@symonics.com>2016-05-06 19:22:44 +0200
committerChristian Hoene <christian.hoene@symonics.com>2016-05-06 19:22:44 +0200
commitb26f3306625fe3f97d730c256cbb9b0722242a5b (patch)
tree4972eb1a322c7e14458c7870aea87f4fd0a064ea /modules/mpa/decode.c
parent1081461b418ef49943be1adae8752ad41052ef87 (diff)
Some minor issues
Diffstat (limited to 'modules/mpa/decode.c')
-rw-r--r--modules/mpa/decode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mpa/decode.c b/modules/mpa/decode.c
index d62bd60..5554d25 100644
--- a/modules/mpa/decode.c
+++ b/modules/mpa/decode.c
@@ -108,7 +108,7 @@ int mpa_decode_update(struct audec_state **adsp, const struct aucodec *ac,
int mpa_decode_frm(struct audec_state *ads, int16_t *sampv, size_t *sampc,
const uint8_t *buf, size_t len)
{
- int result, channels, encoding, i;
+ int result, channels, encoding, i, result2;
long samplerate;
size_t n;
spx_uint32_t intermediate_len;
@@ -131,10 +131,10 @@ int mpa_decode_frm(struct audec_state *ads, int16_t *sampv, size_t *sampc,
intermediate_len = n / 2 / ads->channels;
/* intermediate_len counts samples per channel */
out_len = *sampc;
- result=speex_resampler_process_interleaved_int(
+ result2=speex_resampler_process_interleaved_int(
ads->resampler, ads->intermediate_buffer,
&intermediate_len, sampv, &out_len);
- if (result!=RESAMPLER_ERR_SUCCESS) {
+ if (result2!=RESAMPLER_ERR_SUCCESS) {
error("mpa: upsample error: %s %d %d\n",
strerror(result), out_len, *sampc/2);
return EPROTO;