fix compile

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8168 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-04-22 14:12:59 +00:00
parent 2fa02f3ab3
commit 0828af5d34
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ struct amr_context {
void *decoder_state;
switch_byte_t enc_modes;
switch_byte_t enc_mode;
switch_int_t dtx_mode;
int dtx_mode;
uint32_t change_period;
switch_byte_t max_ptime;
switch_byte_t ptime;
@ -188,7 +188,7 @@ static switch_status_t switch_amr_init(switch_codec_t *codec, switch_codec_flag_
context->enc_modes |= (1 << atoi(m_argv[y]));
}
} else if (!strcasecmp(data, "dtx")) {
context->dtx_mode = if (atoi(arg)) ? AMR_DTX_ENABLED : AMR_DTX_DISABLED;
context->dtx_mode = (atoi(arg)) ? AMR_DTX_ENABLED : AMR_DTX_DISABLED;
}
}
}