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 <>
parent 98308bd4
......@@ -1315,6 +1315,7 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt)
mkv->cluster_pos = 0;
if (mkv->dyn_bc)
// 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