提交 8925519e authored 作者: Chris Rienzo's avatar Chris Rienzo 提交者: Mike Jerris

FS-11785 [libteletone] Fix dead assignment in teletone_dtmf_detect

上级 7187e8ec
......@@ -317,11 +317,10 @@ TELETONE_API(teletone_hit_type_t) teletone_dtmf_detect (teletone_dtmf_detect_sta
int sample;
int best_row;
int best_col;
char hit;
char hit = 0;
int limit;
teletone_hit_type_t r = 0;
hit = 0;
for (sample = 0; sample < samples; sample = limit) {
/* BLOCK_LEN is optimised to meet the DTMF specs. */
if ((samples - sample) >= (BLOCK_LEN - dtmf_detect_state->current_sample)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论