This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/8.1
in repository ffmpeg.

commit ef2834a6b4ff0bb4b7bb137aaa5897886c0f3ae7
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 14 02:55:36 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Sep 19 14:27:14 2026 +0200

    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]>
    (cherry picked from commit 2c05ce65e127fc061a4ec865e9ef08a58375b492)
    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]

Reply via email to