From b2831e193fc23a719598f54006416e87e04032ea Mon Sep 17 00:00:00 2001 From: Nathan Caldwell Date: Sun, 12 Aug 2007 20:11:03 -0600 Subject: [PATCH] Close the current Cluster after no more than 2 sec. --- src/matroska.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matroska.c b/src/matroska.c index f45ec2a..43b08bc 100644 --- a/src/matroska.c +++ b/src/matroska.c @@ -185,7 +185,7 @@ int mk_flushFrame(mk_Writer *w, mk_Track *track) { return 0; delta = track->frame.timecode/w->timescale - w->cluster.tc_scaled; - if (delta > 32767ll || delta < -32768ll) + if (delta > 2000ll || delta < -2000ll) CHECK(mk_closeCluster(w)); if (w->cluster.context == NULL) { -- 2.11.4.GIT