From fee234c193f37d86835766f3354b9663e64060d0 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Date: Tue, 15 Apr 2025 02:30:48 +0200 Subject: [PATCH 11/12] fftools/textformat/avtextformat: Add missing AVERROR() Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- fftools/textformat/avtextformat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/textformat/avtextformat.c b/fftools/textformat/avtextformat.c index 4a90d8664f..5abf81194e 100644 --- a/fftools/textformat/avtextformat.c +++ b/fftools/textformat/avtextformat.c @@ -106,7 +106,7 @@ int avtext_context_close(AVTextFormatContext **ptctx) int ret = 0; if (!tctx) - return EINVAL; + return AVERROR(EINVAL); av_hash_freep(&tctx->hash); @@ -590,7 +590,7 @@ int avtextwriter_context_close(AVTextWriterContext **pwctx) int ret = 0; if (!wctx) - return EINVAL; + return AVERROR(EINVAL); if (wctx->writer) { if (wctx->writer->uninit) -- 2.45.2