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)
committerAnton Khirnov <anton@khirnov.net>
Tue, 5 May 2015 19:41:36 +0000 (21:41 +0200)
commit7b66cf5ce7fdb8b3fa13459aab3f4d6ab559f1ea
tree55311048155d13ff4de0ecfc92d3897e205bcfc2
parent97010c74cbff177b58daf9a092b4e37a7da26f85
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).

CC: libav-stabl@libav.org
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit 110f7f35fb615b97d983b1c6c6a714fddd28bcbe)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/aacpsy.c