Skip to content

Commit 3510ade

Browse files
author
rameshm
committed
fix flatten stack splits contiguous clips issue and add tests
Signed-off-by: Ramesh Maddhu <[email protected]> Signed-off-by: Mark Reid <[email protected]>
1 parent 413f14e commit 3510ade

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/opentimelineio/stackAlgorithm.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ _flatten_next_item(
7474
}
7575

7676
auto children = track->children();
77-
int children_size = static_cast<int>(children.size());
78-
for (int i = 0; i < children_size; i++)
77+
for (size_t i = 0; i < children.size(); i++)
7978
{
8079
std::optional<TimeRange> trim = std::nullopt;
8180
SerializableObject::Retainer<Composable> child = children[i];
@@ -103,7 +102,7 @@ _flatten_next_item(
103102
trim = child_trim;
104103
}
105104

106-
if (i+1 < children_size)
105+
if (i+1 < children.size())
107106
{
108107
child = children[i++];
109108
}

0 commit comments

Comments
 (0)