More consistent types for 16-bit architectures
This commit is contained in:
parent
3e4afc6fd2
commit
c0387ff237
3 changed files with 5 additions and 5 deletions
|
@ -2742,7 +2742,7 @@ int opus_custom_decoder_ctl(CELTDecoder * restrict st, int request, ...)
|
||||||
break;
|
break;
|
||||||
case CELT_GET_AND_CLEAR_ERROR_REQUEST:
|
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)
|
if (value==NULL)
|
||||||
goto bad_arg;
|
goto bad_arg;
|
||||||
*value=st->error;
|
*value=st->error;
|
||||||
|
@ -2751,7 +2751,7 @@ int opus_custom_decoder_ctl(CELTDecoder * restrict st, int request, ...)
|
||||||
break;
|
break;
|
||||||
case OPUS_GET_LOOKAHEAD_REQUEST:
|
case OPUS_GET_LOOKAHEAD_REQUEST:
|
||||||
{
|
{
|
||||||
int *value = va_arg(ap, opus_int32*);
|
opus_int32 *value = va_arg(ap, opus_int32*);
|
||||||
if (value==NULL)
|
if (value==NULL)
|
||||||
goto bad_arg;
|
goto bad_arg;
|
||||||
*value = st->overlap/st->downsample;
|
*value = st->overlap/st->downsample;
|
||||||
|
@ -2774,7 +2774,7 @@ int opus_custom_decoder_ctl(CELTDecoder * restrict st, int request, ...)
|
||||||
break;
|
break;
|
||||||
case OPUS_GET_PITCH_REQUEST:
|
case OPUS_GET_PITCH_REQUEST:
|
||||||
{
|
{
|
||||||
int *value = va_arg(ap, opus_int32*);
|
opus_int32 *value = va_arg(ap, opus_int32*);
|
||||||
if (value==NULL)
|
if (value==NULL)
|
||||||
goto bad_arg;
|
goto bad_arg;
|
||||||
*value = st->postfilter_period;
|
*value = st->postfilter_period;
|
||||||
|
|
|
@ -830,7 +830,7 @@ int opus_decoder_ctl(OpusDecoder *st, int request, ...)
|
||||||
break;
|
break;
|
||||||
case OPUS_GET_PITCH_REQUEST:
|
case OPUS_GET_PITCH_REQUEST:
|
||||||
{
|
{
|
||||||
int *value = va_arg(ap, opus_int32*);
|
opus_int32 *value = va_arg(ap, opus_int32*);
|
||||||
if (value==NULL)
|
if (value==NULL)
|
||||||
{
|
{
|
||||||
ret = OPUS_BAD_ARG;
|
ret = OPUS_BAD_ARG;
|
||||||
|
|
|
@ -81,6 +81,6 @@ static inline int align(int i)
|
||||||
return (i+3)&-4;
|
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 */
|
#endif /* OPUS_PRIVATE_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue