[Freeswitch-svn] [commit] r3849 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Wed Dec 27 10:54:57 EST 2006


Author: anthm
Date: Wed Dec 27 10:54:56 2006
New Revision: 3849

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Log:
tweak

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Wed Dec 27 10:54:56 2006
@@ -1612,13 +1612,13 @@
 
 			if (tech_pvt->read_frame.datalen > 0) {
                 size_t bytes = 0;
-                int frames = 0;
+                int frames = 1;
 				//tech_pvt->last_read = switch_time_now();
                 if (!switch_test_flag((&tech_pvt->read_frame), SFF_CNG)) {
                     if ((bytes = tech_pvt->read_codec.implementation->encoded_bytes_per_frame)) {
                         frames = (tech_pvt->read_frame.datalen / bytes);
-                        tech_pvt->read_frame.samples = (int) (frames * tech_pvt->read_codec.implementation->samples_per_frame);
                     }
+                    tech_pvt->read_frame.samples = (int) (frames * tech_pvt->read_codec.implementation->samples_per_frame);
                 }
 				break;
 			}



More information about the Freeswitch-svn mailing list