]> git.sesse.net Git - nageru/commitdiff
Flush after writing each frame, so that we do not get stuck with something in a long...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 5 May 2016 00:03:09 +0000 (02:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 5 May 2016 00:03:19 +0000 (02:03 +0200)
mux.cpp

diff --git a/mux.cpp b/mux.cpp
index aec124b34aea7be5f5c5de7e9ec36a2eb86b0980..7cd331408b5fabc9b117a14576b7b83c2f4b3007 100644 (file)
--- 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()