- fix compiler warnings
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user