Commit 6adec5b
committed
audio: mfcc: Add frame_shift validation to prevent division by zero
Add input validation for the frame_shift configuration field in
mfcc_setup(). A zero or negative value would cause a division by
zero during STFT processing.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>1 parent 1f32181 commit 6adec5b
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
158 | 166 | | |
159 | 167 | | |
160 | 168 | | |
| |||
0 commit comments