[FFmpeg-cvslog] checkasm/af_afir: relax the max allowed absolute difference

James Almer git at videolan.org
Sun Jan 13 20:01:06 EET 2019


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Jan 10 20:33:06 2019 -0300| [f477ee3e8956cd5a83282033e93c7673f40bd598] | committer: James Almer

checkasm/af_afir: relax the max allowed absolute difference

Should fix failures on x86_32.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f477ee3e8956cd5a83282033e93c7673f40bd598
---

 tests/checkasm/af_afir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/checkasm/af_afir.c b/tests/checkasm/af_afir.c
index 54e2f68d6c..e3fb76e8e0 100644
--- a/tests/checkasm/af_afir.c
+++ b/tests/checkasm/af_afir.c
@@ -53,7 +53,7 @@ static void test_fcmul_add(const float *src0, const float *src1, const float *sr
     call_ref(cdst, src1, src2, LEN);
     call_new(odst, src1, src2, LEN);
     for (i = 0; i <= LEN*2; i++) {
-        if (!float_near_abs_eps(cdst[i], odst[i], FLT_EPSILON)) {
+        if (!float_near_abs_eps(cdst[i], odst[i], 6.2e-05)) {
             fprintf(stderr, "%d: %- .12f - %- .12f = % .12g\n",
                     i, cdst[i], odst[i], cdst[i] - odst[i]);
             fail();



More information about the ffmpeg-cvslog mailing list