Commit 241b306b authored by Frank Galligan's avatar Frank Galligan Committed by Michael Niedermayer

Fix writing first audio Cues in dash mode.

In dahsmode Matroska is not writing the first Cluster for every
audio stream in the Cues element.
Signed-off-by: 's avatarFrank Galligan <frankgalligan@gmail.com>
Reviewed-by: 's avatarVignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0c069493
......@@ -1770,7 +1770,8 @@ static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt)
// on seeing key frames.
start_new_cluster = keyframe;
} else if (mkv->is_dash && codec_type == AVMEDIA_TYPE_AUDIO &&
cluster_time > mkv->cluster_time_limit) {
(mkv->cluster_pos == -1 ||
cluster_time > mkv->cluster_time_limit)) {
// For DASH audio, we create a Cluster based on cluster_time_limit
start_new_cluster = 1;
} else if (!mkv->is_dash &&
......
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