aacpsy: correct calculation of minath in psy_3gpp_init
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 21 Apr 2015 16:43:55 +0000 (18:43 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 21 Apr 2015 23:18:14 +0000 (01:18 +0200)
commitca9849eecdf7db91d652c698018a5b096d8b78c7
treea299dd7e870d72286a7a34659afeaccfbd9607e6
parent0703c44692d1ebd7c530c6f46beae8e4ecafaaa3
aacpsy: correct calculation of minath in psy_3gpp_init

The minimum of the ath(x, ATH_ADD) function depends on ATH_ADD.
This patch uses the first order approximation to determine it.

For ATH_ADD = 4 this results in the value at 3407.06812 (-5.24241638)
not the one at 3410 (-5.24237967).

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Approved-by: Claudio Freire <klaussfreire@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/aacpsy.c