Evade empty blocks in EBML

This commit is contained in:
Erik Zandvliet 2019-04-29 09:59:50 +02:00 committed by Thulinma
parent 055ac37e8a
commit d83a54fac6

View file

@ -66,6 +66,7 @@ namespace Mist{
/// Calculates the size of a Cluster (contents only) and returns it. /// 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. /// 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){ uint32_t OutEBML::clusterSize(uint64_t start, uint64_t end){
if (start == end){++end;}
uint32_t sendLen = EBML::sizeElemUInt(EBML::EID_TIMECODE, start); uint32_t sendLen = EBML::sizeElemUInt(EBML::EID_TIMECODE, start);
for (std::set<long unsigned int>::iterator it = selectedTracks.begin(); for (std::set<long unsigned int>::iterator it = selectedTracks.begin();
it != selectedTracks.end(); it++){ it != selectedTracks.end(); it++){