ffmpeg | branch: master | Anton Khirnov <an...@khirnov.net> | Fri Jun 10 
15:55:51 2022 +0200| [f52d045e341919798f41ce7eee083a43f45c1e1f] | committer: 
Anton Khirnov

fftools/ffmpeg: do not send spurious EOF for streamcopy when looping

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

 fftools/ffmpeg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to