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 2c05ce65e1 avfilter/vf_uspp: Fix qpcount
2c05ce65e1 is described below
commit 2c05ce65e127fc061a4ec865e9ef08a58375b492
Author: Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 14 02:55:36 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Wed Sep 16 19:02:27 2026 +0000
avfilter/vf_uspp: Fix qpcount
Fixes: division by zero
Fixes: tiny_16x8.h264
Fixes: W9IyRhjCcQxd
Found-by: zhang xingxing
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavfilter/vf_uspp.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c
index c5efd44f92..94ced61d0f 100644
--- a/libavfilter/vf_uspp.c
+++ b/libavfilter/vf_uspp.c
@@ -314,7 +314,10 @@ static void filter(AVFilterContext *ctx, uint8_t *dst[3],
uint8_t *src[3],
p->quality = p->qp * FF_QP2LAMBDA;
else {
int qpsum=0;
- int qpcount = (height>>4) * (height>>4);
+ int qpcount = (width>>4) * (height>>4);
+
+ qpsum += !qpcount;
+ qpcount += !qpcount;
for (y = 0; y < (height>>4); y++) {
for (x = 0; x < (width>>4); x++)
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]