From 5c1e10d9958ea5d3847ad3af3107dd021d7fe29b Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Wed, 11 Jun 2025 22:33:17 +0200 Subject: [PATCH] fftools/textformat: do not return early This would make the goto dead code and also would not properly call avtext_context_close. Fix CID 1646939 Reviewed-by: softworkz --- fftools/textformat/avtextformat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fftools/textformat/avtextformat.c b/fftools/textformat/avtextformat.c index fa5abce261..e1aaa9ba57 100644 --- a/fftools/textformat/avtextformat.c +++ b/fftools/textformat/avtextformat.c @@ -222,7 +222,6 @@ int avtext_context_open(AVTextFormatContext **ptctx, const AVTextFormatter *form av_log(tctx, AV_LOG_ERROR, "Invalid UTF8 sequence %s found in string validation replace '%s'\n", bp.str, tctx->string_validation_replacement); - return ret; goto fail; } }