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

fftools/textformat/avtextformat: Add missing AVERROR()

Reviewed-by: softworkz . <softworkz-at-hotmail.com@ffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-04-15 02:30:48 +02:00
parent f873734f84
commit 37635d31cb

View File

@ -106,7 +106,7 @@ int avtext_context_close(AVTextFormatContext **ptctx)
int ret = 0; int ret = 0;
if (!tctx) if (!tctx)
return EINVAL; return AVERROR(EINVAL);
av_hash_freep(&tctx->hash); av_hash_freep(&tctx->hash);
@ -590,7 +590,7 @@ int avtextwriter_context_close(AVTextWriterContext **pwctx)
int ret = 0; int ret = 0;
if (!wctx) if (!wctx)
return EINVAL; return AVERROR(EINVAL);
if (wctx->writer) { if (wctx->writer) {
if (wctx->writer->uninit) if (wctx->writer->uninit)