This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 04fe98482a libswscale/utils: prevent division by zero for chroma width
8
04fe98482a is described below
commit 04fe98482a264117fa49a166c18227f3f93f921b
Author: AnandajithS <[email protected]>
AuthorDate: Mon Feb 16 02:08:36 2026 +0530
Commit: michaelni <[email protected]>
CommitDate: Tue Mar 3 17:38:01 2026 +0000
libswscale/utils: prevent division by zero for chroma width 8
---
libswscale/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswscale/utils.c b/libswscale/utils.c
index 90839817d8..f693f9c2db 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -1212,7 +1212,7 @@ av_cold int ff_sws_init_single_context(SwsContext *sws,
SwsFilter *srcFilter,
return AVERROR(EINVAL);
}
if (flags & SWS_FAST_BILINEAR) {
- if (srcW < 8 || dstW < 8) {
+ if (srcW < 8 || dstW <= 8) {
flags ^= SWS_FAST_BILINEAR | SWS_BILINEAR;
sws->flags = flags;
}
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]