Skip to content
Snippets Groups Projects
Commit 164f7dfa authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Addressing more issues from scan-build

parent 9b1a27a3
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment