From 79fa31d159765bb94b24d209a396e867fe995dcc Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 15 Apr 2025 00:44:48 +0200 Subject: [PATCH] fftools/textformat/tw_avio: Don't flush unnecessarily avio_close() automatically flushes the AVIOContext. Reviewed-by: softworkz . Signed-off-by: Andreas Rheinhardt --- fftools/textformat/tw_avio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fftools/textformat/tw_avio.c b/fftools/textformat/tw_avio.c index 77f8521235..f9fea24b19 100644 --- a/fftools/textformat/tw_avio.c +++ b/fftools/textformat/tw_avio.c @@ -41,7 +41,6 @@ static av_cold void iowriter_uninit(AVTextWriterContext *wctx) IOWriterContext *ctx = wctx->priv; if (ctx->close_on_uninit && ctx->avio_context) { - avio_flush(ctx->avio_context); avio_close(ctx->avio_context); } }