[FFmpeg-cvslog] fftools/ffmpeg: make sure non-lavfi streams are closed on input EOF

Anton Khirnov git at videolan.org
Sun Apr 9 16:50:00 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Apr  3 12:04:50 2023 +0200| [416e2661ea9c2b55d5b9e25d687f0d2a839d6cd6] | committer: Anton Khirnov

fftools/ffmpeg: make sure non-lavfi streams are closed on input EOF

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=416e2661ea9c2b55d5b9e25d687f0d2a839d6cd6
---

 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);
                 }
             }



More information about the ffmpeg-cvslog mailing list