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

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

commit e47d9c42e20b20aa525e848c561c84b6da995063
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Apr 16 13:57:21 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Mon May 4 15:57:27 2026 +0200

    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]>
    (cherry picked from commit 9572ab7f45c8caa99118a73900c66eb7632b96ca)
    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 2c3719a8d0..6cafb48cd1 100644
--- a/libavcodec/decode.h
+++ b/libavcodec/decode.h
@@ -93,9 +93,13 @@ int ff_attach_decode_data(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]

Reply via email to