From d83a54fac6e414ca85169df225a7ff47db87caab Mon Sep 17 00:00:00 2001 From: Erik Zandvliet Date: Mon, 29 Apr 2019 09:59:50 +0200 Subject: [PATCH] Evade empty blocks in EBML --- src/output/output_ebml.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/output/output_ebml.cpp b/src/output/output_ebml.cpp index d11f54bb..3247b4c5 100644 --- a/src/output/output_ebml.cpp +++ b/src/output/output_ebml.cpp @@ -66,6 +66,7 @@ namespace Mist{ /// Calculates the size of a Cluster (contents only) and returns it. /// Bases the calculation on the currently selected tracks and the given start/end time for the cluster. uint32_t OutEBML::clusterSize(uint64_t start, uint64_t end){ + if (start == end){++end;} uint32_t sendLen = EBML::sizeElemUInt(EBML::EID_TIMECODE, start); for (std::set::iterator it = selectedTracks.begin(); it != selectedTracks.end(); it++){