This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 051b8db7221f308b242ddb72428d9ca10f14757c Author: Kacper Michajłow <[email protected]> AuthorDate: Tue Sep 29 11:34:17 2026 +0200 Commit: Kacper Michajłow <[email protected]> CommitDate: Tue Sep 29 18:21:05 2026 +0000 avformat/hls: free the subtitle context if copying the whitelists fails Free it like the other error paths of init_subtitle_context() do. Signed-off-by: Kacper Michajłow <[email protected]> --- libavformat/hls.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 97755da3a3..5c530215e0 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1950,8 +1950,11 @@ static int init_subtitle_context(struct playlist *pls) pls->ctx->io_open = nested_io_open; ret = ff_copy_whiteblacklists(pls->ctx, pls->parent); - if (ret < 0) + if (ret < 0) { + avformat_free_context(pls->ctx); + pls->ctx = NULL; return ret; + } in_fmt = av_find_input_format("webvtt"); av_dict_copy(&opts, c->seg_format_opts, 0); -- 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]
