aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-06-10 15:55:51 +0200
committerAnton Khirnov <anton@khirnov.net>2022-07-23 11:53:19 +0200
commitf52d045e341919798f41ce7eee083a43f45c1e1f (patch)
treec31f9d4a3a2e40b255a20c6f8bbdde6664ddaff0
parent481b27e8503def47e10d8692d3adf3ef69a34dce (diff)
downloadffmpeg-f52d045e341919798f41ce7eee083a43f45c1e1f.tar.gz
fftools/ffmpeg: do not send spurious EOF for streamcopy when looping
-rw-r--r--fftools/ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 2118d5c857..f50e745ab0 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -2524,7 +2524,8 @@ static int process_input_packet(InputStream *ist, const AVPacket *pkt, int no_eo
for (i = 0; i < nb_output_streams; i++) {
OutputStream *ost = output_streams[i];
- if (!check_output_constraints(ist, ost) || ost->encoding_needed)
+ if (!check_output_constraints(ist, ost) || ost->encoding_needed ||
+ (!pkt && no_eof))
continue;
do_streamcopy(ist, ost, pkt);