This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit b84a2037fd020c8de2ac3a0c0f2cd7a4ff7d9e84
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Tue Sep 8 03:11:43 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Sat Sep 12 23:52:20 2026 +0000

    avcodec/tests/celp_math: use av_log2
    
    The inputs are powers of two, so the integer log2 gives the same result
    without depending on libm.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 libavcodec/tests/celp_math.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/tests/celp_math.c b/libavcodec/tests/celp_math.c
index 115817894f..3bcffb2b1c 100644
--- a/libavcodec/tests/celp_math.c
+++ b/libavcodec/tests/celp_math.c
@@ -20,6 +20,7 @@
 #include <stdint.h>
 
 #include "libavutil/avassert.h"
+#include "libavutil/common.h"
 #include "libavutil/float_dsp.h"
 #include "libavutil/libm.h"
 #include "libavutil/macros.h"
@@ -50,7 +51,7 @@ int main(void)
     av_assert0(212 == d);
 
     for (i = 1024; i >= 1; i/=2)
-        av_assert0(ff_log2_q15(i) == (1<<15)*((int)log2(i))+(1<<2));
+        av_assert0(ff_log2_q15(i) == (1<<15)*av_log2(i)+(1<<2));
 
     return 0;
 }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to