Potential underflow / overflow when converting from float to int16
Meoo opened this issue · comments
Bastien Brunnenstein commented
In the example code "rnnoise_demo", the float output is converted to a short with a simple cast
I found by experimentation that the output can be outside of int16 range, so the output should be clamped to prevent clicky noises when the input has values near the int16's min or max
lufengjie051523 commented
Hi,did you solved the problem?