diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-03-05 19:19:59 -0500 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-03-05 19:19:59 -0500 |
commit | c0387ff23739cb450eb41acd078763dd7ab9ec94 (patch) | |
tree | 9e242fd07188b88cb1b3df0b74c7dcba3e39d0bc | |
parent | 3e4afc6fd2b03616db34098d5131f7f1bd3c0e32 (diff) | |
download | opus-c0387ff23739cb450eb41acd078763dd7ab9ec94.tar.gz |
More consistent types for 16-bit architectures
-rw-r--r-- | celt/celt.c | 6 | ||||
-rw-r--r-- | src/opus_decoder.c | 2 | ||||
-rw-r--r-- | src/opus_private.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/celt/celt.c b/celt/celt.c index 1b6a2f70..44732a20 100644 --- a/celt/celt.c +++ b/celt/celt.c @@ -2742,7 +2742,7 @@ int opus_custom_decoder_ctl(CELTDecoder * restrict st, int request, ...) break; case CELT_GET_AND_CLEAR_ERROR_REQUEST: { - int *value = va_arg(ap, opus_int32*); + opus_int32 *value = va_arg(ap, opus_int32*); if (value==NULL) goto bad_arg; *value=st->error; @@ -2751,7 +2751,7 @@ int opus_custom_decoder_ctl(CELTDecoder * restrict st, int request, ...) break; case OPUS_GET_LOOKAHEAD_REQUEST: { - int *value = va_arg(ap, opus_int32*); + opus_int32 *value = va_arg(ap, opus_int32*); if (value==NULL) goto bad_arg; *value = st->overlap/st->downsample; @@ -2774,7 +2774,7 @@ int opus_custom_decoder_ctl(CELTDecoder * restrict st, int request, ...) break; case OPUS_GET_PITCH_REQUEST: { - int *value = va_arg(ap, opus_int32*); + opus_int32 *value = va_arg(ap, opus_int32*); if (value==NULL) goto bad_arg; *value = st->postfilter_period; diff --git a/src/opus_decoder.c b/src/opus_decoder.c index 8a3a7237..ed2f8c73 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -830,7 +830,7 @@ int opus_decoder_ctl(OpusDecoder *st, int request, ...) break; case OPUS_GET_PITCH_REQUEST: { - int *value = va_arg(ap, opus_int32*); + opus_int32 *value = va_arg(ap, opus_int32*); if (value==NULL) { ret = OPUS_BAD_ARG; diff --git a/src/opus_private.h b/src/opus_private.h index c79e4b39..8e6528d6 100644 --- a/src/opus_private.h +++ b/src/opus_private.h @@ -81,6 +81,6 @@ static inline int align(int i) return (i+3)&-4; } -int opus_repacketizer_out_range_impl(OpusRepacketizer *rp, int begin, int end, unsigned char *data, int maxlen, int self_delimited); +int opus_repacketizer_out_range_impl(OpusRepacketizer *rp, int begin, int end, unsigned char *data, opus_int32 maxlen, int self_delimited); #endif /* OPUS_PRIVATE_H */ |