This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit f1cab2d0184fb8b53811525299cb1ff9848ff4e6 Author: Leo Izen <[email protected]> AuthorDate: Sat Apr 4 12:04:07 2026 -0400 Commit: Leo Izen <[email protected]> CommitDate: Fri May 1 07:40:25 2026 -0400 avcodec/exif_internal.h: improve return docs for ff_exif_get_buffer This commit improves the documentation for the return value of the function ff_exif_get_buffer. Signed-off-by: Leo Izen <[email protected]> --- libavcodec/exif_internal.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/exif_internal.h b/libavcodec/exif_internal.h index c0d2b3ef62..713b84ef62 100644 --- a/libavcodec/exif_internal.h +++ b/libavcodec/exif_internal.h @@ -56,11 +56,12 @@ int ff_exif_sanitize_ifd(void *logctx, const AVFrame *frame, AVExifMetadata *ifd * side data types that are included in the frame data, such as possibly an * instance of AV_FRAME_DATA_DISPLAYMATRIX. It also sets width and height tags * to match those of the AVFrame if they are different. + * The *buffer argument must be NULL before calling. * - * Upon error, *buffer will be NULL. The buffer becomes owned by the caller upon - * success. The *buffer argument must be NULL before calling. If *buffer is NULL - * upon return then a negative return value indicates an error, and a zero return - * value indicates that there was no EXIF data to write. + * On success, a positive number is returned, and the buffer becomes owned by the caller. + * A negative AVERROR return value means that an error occurred. + * A zero return value means that there was no EXIF data to write. + * In both the negative and zero cases, *buffer will be NULL. */ int ff_exif_get_buffer(void *logctx, const AVFrame *frame, AVBufferRef **buffer, enum AVExifHeaderMode header_mode); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
