Evade empty blocks in EBML
This commit is contained in:
parent
055ac37e8a
commit
d83a54fac6
1 changed files with 1 additions and 0 deletions
|
@ -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++){
|
||||||
|
|
Loading…
Add table
Reference in a new issue