Skip to content
Snippets Groups Projects
Commit 256c1fc2 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

compute maximum for decoding (#1143)

parent ccf0ee2c
No related branches found
No related tags found
No related merge requests found
...@@ -462,10 +462,10 @@ AudioRtpRTX::receiveSessionForSpkr (int& countTime) ...@@ -462,10 +462,10 @@ AudioRtpRTX::receiveSessionForSpkr (int& countTime)
unsigned char* spkrData = (unsigned char*)adu->getData(); // data in char unsigned char* spkrData = (unsigned char*)adu->getData(); // data in char
unsigned int size = adu->getSize(); // size in char unsigned int size = adu->getSize(); // size in char
// printf("AudioRtpRTX::receiveSessionForSpkr() Size of data from %i \n",size); printf("AudioRtpRTX::receiveSessionForSpkr() Size of data from %i \n",size);
// Decode data with relevant codec // Decode data with relevant codec
// unsigned int max = (unsigned int)(_codecSampleRate * _layerFrameSize / 1000); unsigned int max = (unsigned int)(_codecSampleRate * _layerFrameSize / 1000);
// if ( size > max ) { // if ( size > max ) {
// _debug("We have received from RTP a packet larger than expected: %d VS %d\n", size, max); // _debug("We have received from RTP a packet larger than expected: %d VS %d\n", size, max);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment