From 93fe3f6427b9528ba45f7bc337d81b9717c879fc Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 5 May 2016 02:03:09 +0200 Subject: [PATCH] Flush after writing each frame, so that we do not get stuck with something in a long muxer buffer. --- mux.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mux.cpp b/mux.cpp index aec124b..7cd3314 100644 --- a/mux.cpp +++ b/mux.cpp @@ -167,6 +167,7 @@ void Mux::write_packet_with_signal(const AVPacket &pkt) fprintf(stderr, "av_interleaved_write_frame() failed\n"); exit(1); } + avio_flush(avctx->pb); } void Mux::plug() -- 2.39.2