]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
reflect bit properly
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 28 Feb 2007 18:24:41 +0000 (18:24 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 28 Feb 2007 18:24:41 +0000 (18:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4412 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_amr/mod_amr.c

index f72b92babbe3f6bff82e72ed9283028ca1ef4d61..d57a189a2bf8e8fa4aef9ace794c1425d1075dbc 100644 (file)
@@ -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;