This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.1 in repository ffmpeg.
commit e6e516e92217287b3d1d60ff2728610f6ea30f9d Author: Baptiste Coudurier <[email protected]> AuthorDate: Tue Nov 17 15:17:51 2026 -0800 Commit: Michael Niedermayer <[email protected]> CommitDate: Thu Nov 19 14:55:49 2026 +0100 avcodec/h264dec: do not duplicate side data when outputting f_grain f_grain gets its own side data on allocation, which av_frame_copy_props() appended to. Signed-off-by: Baptiste Coudurier <[email protected]> (cherry picked from commit 2bfdd2a0a6e810a18c1913916e4b7cac50934e79) Signed-off-by: Michael Niedermayer <[email protected]> --- libavcodec/h264dec.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 597bdae548..9e4b1222ab 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -950,8 +950,13 @@ static int output_frame(H264Context *h, AVFrame *dst, H264Picture *srcp) if (ret < 0) return ret; - if (srcp->needs_fg && (ret = av_frame_copy_props(dst, srcp->f)) < 0) - return ret; + if (srcp->needs_fg) { + /* f_grain got its own copy of the side data on allocation */ + av_frame_side_data_free(&dst->side_data, &dst->nb_side_data); + ret = av_frame_copy_props(dst, srcp->f); + if (ret < 0) + return ret; + } if (srcp->decode_error_flags) { atomic_int *decode_error = srcp->decode_error_flags; -- 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]
