From 256c1fc204c7566ed41f43078e294168e5cad8ff Mon Sep 17 00:00:00 2001
From: Alexandre Savard <alexandre.savard@savoirfairelinux.net>
Date: Wed, 22 Apr 2009 17:58:18 -0400
Subject: [PATCH] compute maximum for decoding (#1143)

---
 sflphone-common/src/audio/audiortp.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sflphone-common/src/audio/audiortp.cpp b/sflphone-common/src/audio/audiortp.cpp
index 0770e6e77d..fb51a2475f 100644
--- a/sflphone-common/src/audio/audiortp.cpp
+++ b/sflphone-common/src/audio/audiortp.cpp
@@ -462,10 +462,10 @@ AudioRtpRTX::receiveSessionForSpkr (int& countTime)
     unsigned char* spkrData  = (unsigned char*)adu->getData(); // data 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
-    // unsigned int max = (unsigned int)(_codecSampleRate * _layerFrameSize / 1000);
+    unsigned int max = (unsigned int)(_codecSampleRate * _layerFrameSize / 1000);
 
     // if ( size > max ) {
     //      _debug("We have received from RTP a packet larger than expected: %d VS %d\n", size, max);
-- 
GitLab