This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit d54090fe9f430b5fce1d00ea63c310e7bec6e9ca Author: Niklas Haas <[email protected]> AuthorDate: Fri Dec 5 13:26:22 2025 +0100 Commit: Niklas Haas <[email protected]> CommitDate: Mon Dec 8 16:58:53 2025 +0000 swscale/format: add assertion to prevent nan/inf matrix coeffs --- libswscale/format.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libswscale/format.c b/libswscale/format.c index 5ac0418266..cbb5cb35fe 100644 --- a/libswscale/format.c +++ b/libswscale/format.c @@ -1216,6 +1216,7 @@ static SwsLinearOp fmt_decode_range(const SwsFormat fmt, bool *incomplete) /* Invert main diagonal + offset: x = s * y + k ==> y = (x - k) / s */ for (int i = 0; i < 4; i++) { + av_assert1(c.m[i][i].num); c.m[i][i] = av_inv_q(c.m[i][i]); c.m[i][4] = av_mul_q(c.m[i][4], av_neg_q(c.m[i][i])); } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
