FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_avmd
This commit is contained in:
parent
b86ea2f5a1
commit
e1c9f561b9
|
@ -2225,7 +2225,7 @@ static enum avmd_detection_mode avmd_process_sample(avmd_session_t *s, circ_buff
|
|||
return AVMD_DETECT_FREQ;
|
||||
}
|
||||
if (mode == AVMD_DETECT_BOTH) {
|
||||
if ((avmd_decision_amplitude(s, buffer, v_amp, AVMD_AMPLITUDE_RSD_THRESHOLD) == 1) && (avmd_decision_freq(s, buffer, v_fir, AVMD_VARIANCE_RSD_THRESHOLD) == 1) && (valid_omega == 1)) {
|
||||
if ((avmd_decision_amplitude(s, buffer, v_amp, AVMD_AMPLITUDE_RSD_THRESHOLD) == 1) && (avmd_decision_freq(s, buffer, v_fir, AVMD_VARIANCE_RSD_THRESHOLD) == 1)) {
|
||||
return AVMD_DETECT_BOTH;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue