mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-02 03:24:54 +00:00
CID:1214189 Division or modulo by float zero
This commit is contained in:
parent
269db09015
commit
6b9024246f
@ -141,6 +141,10 @@ TELETONE_API(void) teletone_dtmf_detect_init (teletone_dtmf_detect_state_t *dtmf
|
|||||||
int i;
|
int i;
|
||||||
float theta;
|
float theta;
|
||||||
|
|
||||||
|
if (!sample_rate) {
|
||||||
|
sample_rate = 8000;
|
||||||
|
}
|
||||||
|
|
||||||
dtmf_detect_state->hit1 = dtmf_detect_state->hit2 = 0;
|
dtmf_detect_state->hit1 = dtmf_detect_state->hit2 = 0;
|
||||||
|
|
||||||
for (i = 0; i < GRID_FACTOR; i++) {
|
for (i = 0; i < GRID_FACTOR; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user