diff mbox series

[FFmpeg-devel,01/18] fftools/ffmpeg: stop explicitly closing output streams on input EOF

Message ID 20230826151144.24858-1-anton@khirnov.net
State Accepted
Commit 8f2e7e9dcf7396d8af4816bc7b629a329e02dfdb
Headers show
Series [FFmpeg-devel,01/18] fftools/ffmpeg: stop explicitly closing output streams on input EOF | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Aug. 26, 2023, 3:11 p.m. UTC
Sending an empty packet already does that implicitly.
---
 fftools/ffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 6130fd06fc..c7822f8045 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -1124,7 +1124,7 @@  static int process_input(int file_index)
             for (int oidx = 0; oidx < ist->nb_outputs; oidx++) {
                 OutputStream *ost = ist->outputs[oidx];
                 OutputFile    *of = output_files[ost->file_index];
-                close_output_stream(ost);
+
                 ret = of_output_packet(of, ost, NULL);
                 if (ret < 0)
                     return ret;