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 4a511dc8eb avcodec/h264dec: do not add 0 to the NULL plane pointers
when filling a missing field
4a511dc8eb is described below
commit 4a511dc8eba349b43817e49661b28d521c6b604a
Author: Michael Niedermayer <[email protected]>
AuthorDate: Sat Sep 19 22:16:35 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Wed Sep 23 19:57:52 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]>
---
libavcodec/h264dec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index c38f95f48c..9bb5999005 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -1001,8 +1001,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]