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++){