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 97840ddfbb avcodec/ratecontrol: reject picture types other than I, P
and B in the pass 2 statistics
97840ddfbb is described below
commit 97840ddfbbed2750788e7965f4961d7dbe6a4f5f
Author: Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 15 06:13:53 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Fri Sep 25 16:14:35 2026 +0000
avcodec/ratecontrol: reject picture types other than I, P and B in the pass
2 statistics
Fixes: out of array access
Fixes: YjwTTD8DawW5
Found-by: Zheng Yu @ Depthfirst
---
libavcodec/ratecontrol.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index d48ede909c..ab2c43b8d2 100644
--- a/libavcodec/ratecontrol.c
+++ b/libavcodec/ratecontrol.c
@@ -628,6 +628,11 @@ av_cold int ff_rate_control_init(MPVMainEncContext *const
m)
i, e);
return -1;
}
+ if (rce->pict_type < AV_PICTURE_TYPE_I || rce->pict_type >
AV_PICTURE_TYPE_B) {
+ av_log(avctx, AV_LOG_ERROR, "invalid picture type %d at line
%d\n",
+ rce->pict_type, i);
+ return -1;
+ }
p = next;
}
--
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]