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

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

The following commit(s) were added to refs/heads/release/9.0 by this push:
     new ebafaee10a avcodec/h264dec: do not add 0 to the NULL plane pointers 
when filling a missing field
ebafaee10a is described below

commit ebafaee10ab45fce1964bd09efcd848e2da5b401
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Sep 19 22:16:35 2026 +0200
Commit:     Marvin Scholz <[email protected]>
CommitDate: Mon Sep 28 00:02:43 2026 +0000

    avcodec/h264dec: do not add 0 to the NULL plane pointers when filling a 
missing field
    
    Not a vulnerability
    
    Fixes: irADzptPLJF2
    Found-by: Qiang Li <[email protected]>
    (cherry picked from commit 4a511dc8eba349b43817e49661b28d521c6b604a)
    Signed-off-by: iceray <[email protected]>
---
 libavcodec/h264dec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index ca65df2b84..1f055345c2 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -948,8 +948,8 @@ static int finalize_frame(H264Context *h, AVFrame *dst, 
H264Picture *out, int *g
             av_log(h->avctx, AV_LOG_DEBUG, "Duplicating field %d to fill 
missing\n", field);
 
             for (p = 0; p<4; p++) {
-                dst_data[p] = f->data[p] + (field^1)*f->linesize[p];
-                src_data[p] = f->data[p] +  field   *f->linesize[p];
+                dst_data[p] = FF_PTR_ADD(f->data[p], (field^1)*f->linesize[p]);
+                src_data[p] = FF_PTR_ADD(f->data[p],  field   *f->linesize[p]);
                 linesizes[p] = 2*f->linesize[p];
             }
 

-- 
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