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 9572ab7f45 avcodec/decode: Better documentation for ff_set_dimensions()
9572ab7f45 is described below
commit 9572ab7f45c8caa99118a73900c66eb7632b96ca
Author: Michael Niedermayer <[email protected]>
AuthorDate: Thu Apr 16 13:57:21 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Sat May 2 21:11:47 2026 +0000
avcodec/decode: Better documentation for ff_set_dimensions()
Clarify what is checked and that it avoids explicit generic overflow checks
Signed-off-by: Michael Niedermayer <[email protected]>
---
libavcodec/decode.h | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/libavcodec/decode.h b/libavcodec/decode.h
index b4ae0ba8fe..536c71f3e4 100644
--- a/libavcodec/decode.h
+++ b/libavcodec/decode.h
@@ -96,9 +96,13 @@ int ff_attach_decode_data(AVCodecContext *avctx, AVFrame
*frame);
*/
int ff_copy_palette(void *dst, const AVPacket *src, void *logctx);
-/**
- * Check that the provided frame dimensions are valid and set them on the codec
- * context.
+/*
+ * Validate and set video frame dimensions on AVCodecContext.
+ *
+ * Dimensions accepted here satisfy FFmpeg's generic image-size validation
+ * (see av_image_check_size2()). Decoder code normally should not duplicate
+ * generic width/height overflow checks before ff_get_buffer(); add local
+ * checks only for codec-specific derived sizes or complexity bounds.
*/
int ff_set_dimensions(AVCodecContext *s, int width, int height);
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]