From: Anthony Minessale Date: Wed, 28 Feb 2007 18:24:41 +0000 (+0000) Subject: reflect bit properly X-Git-Tag: v1.0-beta1~993 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=033257583bcf634b6c415a59dc3f611af082b9fc;p=thirdparty%2Ffreeswitch.git reflect bit properly git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4412 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/codecs/mod_amr/mod_amr.c b/src/mod/codecs/mod_amr/mod_amr.c index f72b92babb..d57a189a2b 100644 --- a/src/mod/codecs/mod_amr/mod_amr.c +++ b/src/mod/codecs/mod_amr/mod_amr.c @@ -202,7 +202,7 @@ static switch_status_t switch_amr_init(switch_codec_t *codec, switch_codec_flag_ context->enc_mode = globals.default_bitrate; } - snprintf(fmtptmp, sizeof(fmtptmp), "octet-align=0; mode-set=%d", context->enc_mode); + snprintf(fmtptmp, sizeof(fmtptmp), "octet-align=%d; mode-set=%d", switch_test_flag(context, AMR_OPT_OCTET_ALIGN) ? 1 : 0, context->enc_mode); codec->fmtp_out = switch_core_strdup(codec->memory_pool, fmtptmp); context->enc_mode = AMR_DEFAULT_BITRATE;