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

Git pushed a commit to branch master
in repository ffmpeg.

commit b1142ed5be1f48af8b1d8989ab04fb379e24fe59
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Tue Jul 28 17:21:44 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Sun Aug 2 02:00:49 2026 +0200

    tests/checkasm/huffyuvdsp: Actually test width not multiple of 16
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 tests/checkasm/huffyuvdsp.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/tests/checkasm/huffyuvdsp.c b/tests/checkasm/huffyuvdsp.c
index 0cee315c24..d4b58a5bd2 100644
--- a/tests/checkasm/huffyuvdsp.c
+++ b/tests/checkasm/huffyuvdsp.c
@@ -20,7 +20,6 @@
 
 #include <string.h>
 
-#include "libavutil/common.h"
 #include "libavutil/intreadwrite.h"
 #include "libavutil/mem.h"
 
@@ -28,6 +27,10 @@
 
 #include "checkasm.h"
 
+enum {
+    MAX_WIDTH = 16*128,   ///< arbitrary limit used for the tests
+};
+
 #define randomize_buffers(buf, size)     \
     do {                                 \
         int j;                           \
@@ -104,19 +107,19 @@ static void 
check_add_hfyu_left_pred_bgr32(HuffYUVDSPContext *c)
 void checkasm_check_huffyuvdsp(void)
 {
     HuffYUVDSPContext c;
-    int width = 16 * av_clip(rnd(), 16, 128);
 
     ff_huffyuvdsp_init(&c, AV_PIX_FMT_YUV422P);
 
     unsigned bps  = 9 + rnd() % 8;
     unsigned mask = (1 << bps) - 1;
+    int width = 1 + rnd() % MAX_WIDTH;
 
     /*! test width not multiple of mmsize */
     check_add_int16(&c, mask, width, "add_int16_rnd_width");
     report("add_int16_rnd_width");
 
     /*! test always with the same size (for perf test) */
-    check_add_int16(&c, mask, 16*128, "add_int16_128");
+    check_add_int16(&c, mask, MAX_WIDTH, "add_int16_128");
     report("add_int16_128");
 
     check_add_hfyu_left_pred_bgr32(&c);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to