mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +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;
|
||||
float theta;
|
||||
|
||||
if (!sample_rate) {
|
||||
sample_rate = 8000;
|
||||
}
|
||||
|
||||
dtmf_detect_state->hit1 = dtmf_detect_state->hit2 = 0;
|
||||
|
||||
for (i = 0; i < GRID_FACTOR; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user