From 416e2661ea9c2b55d5b9e25d687f0d2a839d6cd6 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 3 Apr 2023 12:04:50 +0200 Subject: [PATCH] fftools/ffmpeg: make sure non-lavfi streams are closed on input EOF --- fftools/ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 438bee8fef..2f1f830507 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -3804,6 +3804,7 @@ static int process_input(int file_index) if (ost->ist == ist && (!ost->enc_ctx || ost->enc_ctx->codec_type == AVMEDIA_TYPE_SUBTITLE)) { OutputFile *of = output_files[ost->file_index]; + close_output_stream(ost); of_output_packet(of, ost->pkt, ost, 1); } }