aboutsummaryrefslogtreecommitdiff
path: root/src/opus_demo.c
diff options
context:
space:
mode:
authorFelicia Lim <flim@google.com>2016-07-25 20:28:37 +0200
committerFelicia Lim <flim@google.com>2016-08-01 11:41:57 +0200
commitd03c373974c945b4b62b59b873522387418a2a3f (patch)
tree5e5c32e7d2a943a87532a9f426bc1cad137851cd /src/opus_demo.c
parentda5155b2f54bc136754590d0871008d9622c8100 (diff)
downloadlibopus-d03c373974c945b4b62b59b873522387418a2a3f.tar.gz
Upgrade Opus to v1.1.3
Diffstat (limited to 'src/opus_demo.c')
-rw-r--r--src/opus_demo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/opus_demo.c b/src/opus_demo.c
index 9e99a3b2..7c930699 100644
--- a/src/opus_demo.c
+++ b/src/opus_demo.c
@@ -591,10 +591,11 @@ int main(int argc, char *argv[])
in = (short*)malloc(max_frame_size*channels*sizeof(short));
out = (short*)malloc(max_frame_size*channels*sizeof(short));
+ /* We need to allocate for 16-bit PCM data, but we store it as unsigned char. */
fbytes = (unsigned char*)malloc(max_frame_size*channels*sizeof(short));
- data[0] = (unsigned char*)calloc(max_payload_bytes,sizeof(char));
+ data[0] = (unsigned char*)calloc(max_payload_bytes,sizeof(unsigned char));
if ( use_inbandfec ) {
- data[1] = (unsigned char*)calloc(max_payload_bytes,sizeof(char));
+ data[1] = (unsigned char*)calloc(max_payload_bytes,sizeof(unsigned char));
}
if(delayed_decision)
{