This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 4851060ccd2881d2f19abda3b19ff0bd5a72f3ea Author: Marvin Scholz <[email protected]> AuthorDate: Tue Apr 21 22:14:01 2026 +0200 Commit: Marvin Scholz <[email protected]> CommitDate: Tue May 12 17:18:38 2026 +0200 avutil: hdr_dynamic_metadata: fix error code When s is NULL in av_dynamic_hdr_smpte2094_app5_from_t35, that's not an allocation error but just invalid API usage. If there is any allocation failure beforehand that would lead to this, the caller has to check it, like is already done in all usages of this function in FFmpeg itself. --- libavutil/hdr_dynamic_metadata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/hdr_dynamic_metadata.c b/libavutil/hdr_dynamic_metadata.c index 4505786119..e8987f836d 100644 --- a/libavutil/hdr_dynamic_metadata.c +++ b/libavutil/hdr_dynamic_metadata.c @@ -438,7 +438,7 @@ int av_dynamic_hdr_smpte2094_app5_from_t35(AVDynamicHDRSmpte2094App5 *s, const u size_t padded_size = size + AV_INPUT_BUFFER_PADDING_SIZE; if (!s) - return AVERROR(ENOMEM); + return AVERROR(EINVAL); uint8_t *padded_data = av_mallocz(padded_size); if (!padded_data) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
