summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-08-18 20:09:41 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-08-19 22:47:06 +0200
commit59f595921eb2b848a80a74aa81b6bb43038c9ebe (patch)
tree14f41b1fa312821eeb6c3144daa0f8df72fc5579 /libavformat
parent98308bd44face14ea3142b501d16226eec23b75a (diff)
downloadffmpeg-59f595921eb2b848a80a74aa81b6bb43038c9ebe.tar.gz
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@gentoo.org>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/matroskaenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index ead0a82467..51edce0152 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