[FFmpeg-devel] [PATCH] fftools/ffmpeg: make sure non-lavfi streams are closed on input EOF
Anton Khirnov
anton at khirnov.net
Mon Apr 3 13:09:54 EEST 2023
---
Should be fixed by adding this patch to the set, at any point.
Also updated my ffmpeg_frame_size branch.
---
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);
}
}
--
2.39.1
More information about the ffmpeg-devel
mailing list