This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit f59968720c0875cb267e767f62a17b4e5d68346f Author: 0xBat <[email protected]> AuthorDate: Mon Jan 5 02:11:42 2026 +0100 Commit: Michael Niedermayer <[email protected]> CommitDate: Fri Jan 9 23:45:07 2026 +0100 doc/examples/extract_mvs: fix memory leak in codec context initialization Ensure the allocated AVCodecContext is properly freed if avcodec_parameters_to_context fails. Signed-off-by: 0xBat <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> --- doc/examples/extract_mvs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/examples/extract_mvs.c b/doc/examples/extract_mvs.c index 5603064d72..b5ed2c5549 100644 --- a/doc/examples/extract_mvs.c +++ b/doc/examples/extract_mvs.c @@ -109,6 +109,7 @@ static int open_codec_context(AVFormatContext *fmt_ctx, enum AVMediaType type) ret = avcodec_parameters_to_context(dec_ctx, st->codecpar); if (ret < 0) { fprintf(stderr, "Failed to copy codec parameters to codec context\n"); + avcodec_free_context(&dec_ctx); return ret; } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
