More consistent types for 16-bit architectures

This commit is contained in:
Jean-Marc Valin 2012-03-05 19:19:59 -05:00
parent 3e4afc6fd2
commit c0387ff237
3 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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 */