This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit d62102d679b004a9ce32dee8dcf75f8c513fd6aa Author: Niklas Haas <[email protected]> AuthorDate: Mon Dec 1 16:18:03 2025 +0100 Commit: Niklas Haas <[email protected]> CommitDate: Mon Dec 15 14:31:58 2025 +0000 swscale/ops_tmpl_float: actually skip allocation for !size_log2 case This check was wrong; 1 << 0 = 1. The intent was to skip allocating a 1x1 matrix by assuming it is a constant 0.5. But as written, the check never actually executed. This did not affect the runtime performance, nor did it leak memory; but it did mean we didn't hit the intended `assert`. --- libswscale/ops_tmpl_float.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/ops_tmpl_float.c b/libswscale/ops_tmpl_float.c index 78b3a9c4fc..c64ae4188f 100644 --- a/libswscale/ops_tmpl_float.c +++ b/libswscale/ops_tmpl_float.c @@ -44,7 +44,7 @@ DECL_SETUP(setup_dither) { const int size = 1 << op->dither.size_log2; - if (!size) { + if (size == 1) { /* We special case this value */ av_assert1(!av_cmp_q(op->dither.matrix[0], av_make_q(1, 2))); out->ptr = NULL; _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
