[FFmpeg-cvslog] tests/checkasm/aacencdsp: Use float_near_ulp_array() for abs_pow34() test

Michael Niedermayer git at videolan.org
Wed Jan 24 01:42:32 EET 2024


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Jan 23 21:06:49 2024 +0100| [d6c62b4bce8f9ae5f09a8acaf446c1a8231bca55] | committer: Michael Niedermayer

tests/checkasm/aacencdsp: Use float_near_ulp_array() for abs_pow34() test

Fixes: ticket/10818
Approved-by: James Almer <jamrial at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/tests/checkasm/aacencdsp.c b/tests/checkasm/aacencdsp.c
index 684c775862..6fc22047c3 100644
--- a/tests/checkasm/aacencdsp.c
+++ b/tests/checkasm/aacencdsp.c
@@ -51,7 +51,7 @@ static void test_abs_pow34(AACEncContext *s) {
         call_ref(out, in, BUF_SIZE);
         call_new(out2, in, BUF_SIZE);
 
-        if (memcmp(out, out2, BUF_SIZE * sizeof(float)) != 0)
+        if (!float_near_ulp_array(out, out2, 1, BUF_SIZE))
             fail();
 
         bench_new(out, in, BUF_SIZE);



More information about the ffmpeg-cvslog mailing list