Commit 59f59592 authored by Luca Barbato's avatar Luca Barbato
Browse files

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: default avatarLuca Barbato <lu_zero@gentoo.org>
parent 98308bd4
...@@ -1315,6 +1315,7 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -1315,6 +1315,7 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt)
mkv->cluster_pos = 0; mkv->cluster_pos = 0;
if (mkv->dyn_bc) if (mkv->dyn_bc)
mkv_flush_dynbuf(s); mkv_flush_dynbuf(s);
avio_flush(s->pb);
} }
// check if we have an audio packet cached // check if we have an audio packet cached
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment