1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

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 <softworkz@hotmail.com>
This commit is contained in:
Marvin Scholz
2025-06-11 22:33:17 +02:00
parent 564a0784bb
commit 5c1e10d995

View File

@ -222,7 +222,6 @@ int avtext_context_open(AVTextFormatContext **ptctx, const AVTextFormatter *form
av_log(tctx, AV_LOG_ERROR, av_log(tctx, AV_LOG_ERROR,
"Invalid UTF8 sequence %s found in string validation replace '%s'\n", "Invalid UTF8 sequence %s found in string validation replace '%s'\n",
bp.str, tctx->string_validation_replacement); bp.str, tctx->string_validation_replacement);
return ret;
goto fail; goto fail;
} }
} }