This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 953d278a0130c2608316ecb7faae09b97179fc47 Author: Niklas Haas <[email protected]> AuthorDate: Tue Apr 14 16:29:17 2026 +0200 Commit: Niklas Haas <[email protected]> CommitDate: Thu Apr 16 20:59:39 2026 +0000 tests/swscale: fix input pattern generation for very small sizes This currently completely fails for images smaller than 12x12; and even in that case, the limited resolution makes these tests a bit useless. At the risk of triggering a lot of spurious SSIM regressions for very small sizes (due to insufficiently modelling the effects of low resolution on the expected noise), this patch allows us to at least *run* such tests. Incidentally, 8x8 is the smallest size that passes the SSIM check. --- libswscale/tests/swscale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c index 8d500cefce..49682e8fec 100644 --- a/libswscale/tests/swscale.c +++ b/libswscale/tests/swscale.c @@ -793,8 +793,8 @@ static int init_ref(AVFrame *ref, const struct options *opts) if (!ctx || !rgb) goto error; - rgb->width = opts->w / 12; - rgb->height = opts->h / 12; + rgb->width = opts->w > 32 ? opts->w / 12 : opts->w; + rgb->height = opts->h > 32 ? opts->h / 12 : opts->h; rgb->format = AV_PIX_FMT_RGBA; ret = av_frame_get_buffer(rgb, 32); if (ret < 0) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
