From 55156a46db0bfbc07eb0ac02e177697aa11d8779 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 5 Sep 2006 22:09:56 +0000 Subject: [PATCH] Thanks stkn git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2521 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/codecs/mod_amr/mod_amr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/codecs/mod_amr/mod_amr.c b/src/mod/codecs/mod_amr/mod_amr.c index 0e012dc2bf..27483e3b3d 100644 --- a/src/mod/codecs/mod_amr/mod_amr.c +++ b/src/mod/codecs/mod_amr/mod_amr.c @@ -183,7 +183,7 @@ static switch_status_t switch_amr_decode(switch_codec_t *codec, 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 @@ static const switch_codec_implementation_t amr_implementation = { /*.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,