aacenc_tns: fix out-of-bounds array access
Since the coefficients are stepped up to order + 1 it was possible
that it went over TNS_MAX_ORDER. Also just return in case the only
coefficient is less than the threshold.
Signed-off-by:
Rostislav Pehlivanov <atomnuker@gmail.com>
Showing
Please
register
or
sign in
to comment