wth was I thinking here hehe

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7454 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-02-01 06:36:42 +00:00
parent cd35407df5
commit ab879c6546
1 changed files with 1 additions and 17 deletions

View File

@ -51,23 +51,7 @@ static switch_status_t switch_g726_init(switch_codec_t *codec, switch_codec_flag
packing = G726_PACKING_LEFT;
}
switch (codec->implementation->bits_per_second) {
case 40000:
g726_init(context, codec->implementation->bits_per_second, G726_ENCODING_LINEAR, packing);
break;
case 32000:
g726_init(context, codec->implementation->bits_per_second, G726_ENCODING_LINEAR, packing);
break;
case 24000:
g726_init(context, codec->implementation->bits_per_second, G726_ENCODING_LINEAR, packing);
break;
case 16000:
g726_init(context, codec->implementation->bits_per_second, G726_ENCODING_LINEAR, packing);
break;
default:
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "invalid Encoding Size %d!\n", codec->implementation->encoded_bytes_per_frame);
return SWITCH_STATUS_FALSE;
}
codec->private_info = context;
return SWITCH_STATUS_SUCCESS;