]> git.sesse.net Git - nageru/blobdiff - mux.cpp
Flush after writing each frame, so that we do not get stuck with something in a long...
[nageru] / 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()