ref: 24ed465e71124c392a4e75fbdbb3e7d231c42e5b
parent: 9d9bad48ab738bbdcb051a174ad24acb824fe367
author: Jean-Marc Valin <[email protected]>
date: Fri May 18 11:14:17 EDT 2012
int vs opus_int32 consistency
--- a/src/opus_demo.c
+++ b/src/opus_demo.c
@@ -223,7 +223,7 @@
int packet_loss_perc;
opus_int32 count=0, count_act=0;
int k;
- int skip=0;
+ opus_int32 skip=0;
int stop=0;
short *in, *out;
int application=OPUS_APPLICATION_AUDIO;
--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -437,7 +437,7 @@
#ifdef FIXED_POINT
#define opus_encode_native opus_encode
-int opus_encode(OpusEncoder *st, const opus_val16 *pcm, int frame_size,
+opus_int32 opus_encode(OpusEncoder *st, const opus_val16 *pcm, int frame_size,
unsigned char *data, opus_int32 out_data_bytes)
#else
#define opus_encode_native opus_encode_float
@@ -1248,7 +1248,7 @@
#ifdef FIXED_POINT
#ifndef DISABLE_FLOAT_API
-int opus_encode_float(OpusEncoder *st, const float *pcm, int frame_size,
+opus_int32 opus_encode_float(OpusEncoder *st, const float *pcm, int frame_size,
unsigned char *data, opus_int32 max_data_bytes)
{
int i, ret;
--- a/tests/test_opus_api.c
+++ b/tests/test_opus_api.c
@@ -92,7 +92,7 @@
#endif
short sbuf[960*2];
int c,err;
- int *nullvalue;
+ opus_int32 *nullvalue;
nullvalue=0;
cfgs=0;