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

Freeswitch SVN anthm at freeswitch.org
Wed Feb 28 13:24:41 EST 2007


Author: anthm
Date: Wed Feb 28 13:24:41 2007
New Revision: 4412

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

Log:
reflect bit properly

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	Wed Feb 28 13:24:41 2007
@@ -202,7 +202,7 @@
 			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;



More information about the Freeswitch-svn mailing list