Skip to content

Avoid possible saturations in ACELP gain encoder

Basic info

This is a follow up of #1978 (closed)., see also discussion in !2183 (merged).

The gain encoding routines contain multiplication operations that can theoretically saturate. Thus a _sat() operation should be used at all fragile parts, in particular at all coeff[] multiplications in all the different gain encoding functions.