Fix crash on v1 timecode files with zero override ranges
This commit is contained in:
parent
e75fc089d3
commit
72748d45f7
1 changed files with 2 additions and 1 deletions
|
@ -103,7 +103,8 @@ int64_t v1_parse(line_iterator<std::string> file, std::string line, std::vector<
|
||||||
|
|
||||||
std::sort(begin(ranges), end(ranges));
|
std::sort(begin(ranges), end(ranges));
|
||||||
|
|
||||||
timecodes.reserve(ranges.back().end + 2);
|
if (!ranges.empty())
|
||||||
|
timecodes.reserve(ranges.back().end + 2);
|
||||||
double time = 0.;
|
double time = 0.;
|
||||||
int frame = 0;
|
int frame = 0;
|
||||||
for (auto const& range : ranges) {
|
for (auto const& range : ranges) {
|
||||||
|
|
Loading…
Reference in a new issue