From 58919a93466e2e34e48211c215bcbeebd7a8a99a Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 29 Apr 2019 10:48:09 +0200 Subject: [PATCH] Improve MKV input latency significantly --- src/input/input_ebml.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/input_ebml.h b/src/input/input_ebml.h index 1b34e40f..55079f2d 100644 --- a/src/input/input_ebml.h +++ b/src/input/input_ebml.h @@ -52,7 +52,7 @@ namespace Mist{ if (finished){ return (ctr - rem > 0); }else{ - return (ctr - rem > 12); + return frameOffsetKnown ? (ctr - rem > 1) : (ctr - rem > 12); } } /// Clears all internal values, for reuse as-new.