提交 5d56f0fd authored 作者: Brian West's avatar Brian West

add plc to bv16/32

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15466 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c69bdbb4
...@@ -120,8 +120,12 @@ static switch_status_t switch_bv16_decode(switch_codec_t *codec, ...@@ -120,8 +120,12 @@ static switch_status_t switch_bv16_decode(switch_codec_t *codec,
*decoded_data_len = 0; *decoded_data_len = 0;
for (i = 0; i < frames; i++) { for (i = 0; i < frames; i++) {
if ((*flag & SFF_PLC)) {
BV16_PLC(&context->ds, target);
} else {
BV16_BitUnPack(cur_frame, &context->dbs); BV16_BitUnPack(cur_frame, &context->dbs);
BV16_Decode(&context->dbs, &context->ds, target); BV16_Decode(&context->dbs, &context->ds, target);
}
cur_frame += CODE_SIZE; cur_frame += CODE_SIZE;
target += FRAME_SIZE; target += FRAME_SIZE;
*decoded_data_len += FRAME_SIZE * 2; *decoded_data_len += FRAME_SIZE * 2;
......
...@@ -120,8 +120,12 @@ static switch_status_t switch_bv32_decode(switch_codec_t *codec, ...@@ -120,8 +120,12 @@ static switch_status_t switch_bv32_decode(switch_codec_t *codec,
*decoded_data_len = 0; *decoded_data_len = 0;
for (i = 0; i < frames; i++) { for (i = 0; i < frames; i++) {
if ((*flag & SFF_PLC)) {
BV32_PLC(&context->ds, target);
} else {
BV32_BitUnPack(cur_frame, &context->dbs); BV32_BitUnPack(cur_frame, &context->dbs);
BV32_Decode(&context->dbs, &context->ds, target); BV32_Decode(&context->dbs, &context->ds, target);
}
cur_frame += CODE_SIZE; cur_frame += CODE_SIZE;
target += FRAME_SIZE; target += FRAME_SIZE;
*decoded_data_len += FRAME_SIZE * 2; *decoded_data_len += FRAME_SIZE * 2;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论