- fix compiler warnings

This commit is contained in:
2023-06-05 11:55:40 +03:00
parent 6b8549346c
commit 42cc9ee096
14 changed files with 37 additions and 35 deletions

View File

@@ -599,10 +599,10 @@ int AmrWbCodec::encode(const void* input, int inputBytes, void* output, int outp
return 0;
// Declare the data input pointer
const short *dataIn = (const short *)input;
// const short *dataIn = (const short *)input;
// Declare the data output pointer
unsigned char *dataOut = (unsigned char *)output;
// unsigned char *dataOut = (unsigned char *)output;
// Find how much RTP frames will be generated
unsigned int frames = inputBytes / pcmLength();

View File

@@ -125,7 +125,7 @@ int G729Codec::channels()
return 1;
}
static const int SamplesPerFrame = 80;
// static const int SamplesPerFrame = 80;
int G729Codec::encode(const void* input, int inputBytes, void* output, int outputCapacity)
{
// Create encoder if it is not done yet

View File

@@ -227,8 +227,7 @@ int EVSCodec::decode(const void* input, int input_length, void* output, int outp
else
buffer = std::string(reinterpret_cast<const char*>(input), input_length);
}
else
// Skip CMR byte
else // Skip CMR byte
buffer = std::string(reinterpret_cast<const char*>(input) + 1, input_length-1);