mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 13:58:32 +00:00
CID:1214189 Division or modulo by float zero
This commit is contained in:
1 parent
269db09015
commit
6b9024246f
1 file changed
+4
@@ -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++) {
|
||||
|
||||
Reference in new issue
Block a user