[FFmpeg-devel] [PATCH 3/4] fftools/textformat: do not return early

Marvin Scholz epirat07 at gmail.com
Wed Jun 11 23:42:12 EEST 2025


This would make the goto dead code and also would not properly
call avtext_context_close.

Fix CID 1646939
---
 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;
             }
         }
-- 
2.39.5 (Apple Git-154)



More information about the ffmpeg-devel mailing list