]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Thanks stkn
authorBrian West <brian@freeswitch.org>
Tue, 5 Sep 2006 22:09:56 +0000 (22:09 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 5 Sep 2006 22:09:56 +0000 (22:09 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2521 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_amr/mod_amr.c

index 0e012dc2bfcdf48416dd90411bb98a39bd347eb9..27483e3b3d9167ca6f7105c2d7f4eb5ee7b1b156 100644 (file)
@@ -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,