[FFmpeg-cvslog] mkv: Flush the old cluster before writing a new one

Luca Barbato git at videolan.org
Tue Aug 20 11:37:06 CEST 2013


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sun Aug 18 20:09:41 2013 +0200| [59f595921eb2b848a80a74aa81b6bb43038c9ebe] | committer: Luca Barbato

mkv: Flush the old cluster before writing a new one

This simplifies keeping track of cluster boundaries for e.g.
livestreaming of WebM.

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

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

 libavformat/matroskaenc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index ead0a82..51edce0 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -1315,6 +1315,7 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt)
         mkv->cluster_pos = 0;
         if (mkv->dyn_bc)
             mkv_flush_dynbuf(s);
+        avio_flush(s->pb);
     }
 
     // check if we have an audio packet cached



More information about the ffmpeg-cvslog mailing list