[Freeswitch-svn] [commit] r2521 - freeswitch/trunk/src/mod/codecs/mod_amr

Freeswitch SVN brian at freeswitch.org
Tue Sep 5 18:09:56 EDT 2006


Author: brian
Date: Tue Sep  5 18:09:56 2006
New Revision: 2521

Modified:
   freeswitch/trunk/src/mod/codecs/mod_amr/mod_amr.c

Log:
Thanks stkn

Modified: freeswitch/trunk/src/mod/codecs/mod_amr/mod_amr.c
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_amr/mod_amr.c	(original)
+++ freeswitch/trunk/src/mod/codecs/mod_amr/mod_amr.c	Tue Sep  5 18:09:56 2006
@@ -183,7 +183,7 @@
 
 	Decoder_Interface_Decode( context->decoder_state, (void *)encoded_data, (void *)decoded_data, 0 );
 
-	*decoded_data_len = codec->implementation->samples_per_frame;
+	*decoded_data_len = codec->implementation->bytes_per_frame;
 
 	return SWITCH_STATUS_SUCCESS;
 }
@@ -198,7 +198,7 @@
 	/*.bits_per_second */ 0, 
 	/*.microseconds_per_frame */ 20000, 
 	/*.samples_per_frame */ 160, 
-	/*.bytes_per_frame */ 0, 
+	/*.bytes_per_frame */ 320,
 	/*.encoded_bytes_per_frame */ 0, 
 	/*.number_of_channels */ 1, 
 	/*.pref_frames_per_packet */ 1, 



More information about the Freeswitch-svn mailing list