avcodec/aacdec_templat: Fix integer overflow in apply_ltp()