This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit f3ae2936e88b7ea4ff8e6cbc25a80c6e998a6027 Author: Zhao Zhili <[email protected]> AuthorDate: Tue Sep 15 18:14:17 2026 +0800 Commit: Zhao Zhili <[email protected]> CommitDate: Sat Sep 19 17:46:51 2026 +0000 avcodec/videotoolboxenc: free the extradata buffer node on error paths node is set to NULL at the point ownership passes to VideoToolbox, so a node that is still set at the end of vtenc_populate_extradata() is one this function owns and must release. --- libavcodec/videotoolboxenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c index ab74364ae6..aa5e4313b9 100644 --- a/libavcodec/videotoolboxenc.c +++ b/libavcodec/videotoolboxenc.c @@ -2697,8 +2697,8 @@ pe_cleanup: vtctx->frame_ct_out = 0; av_assert0(status != 0 || (avctx->extradata && avctx->extradata_size > 0)); - if (!status) - vtenc_free_buf_node(node); + // NULL once ownership passed to VideoToolbox, so a set node must be freed. + vtenc_free_buf_node(node); return status; } -- 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]
