Fix crash on v1 timecode files with zero override ranges

This commit is contained in:
Thomas Goyne 2014-05-28 16:34:44 -07:00
parent e75fc089d3
commit 72748d45f7
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ int64_t v1_parse(line_iterator<std::string> file, std::string line, std::vector<
std::sort(begin(ranges), end(ranges));
timecodes.reserve(ranges.back().end + 2);
if (!ranges.empty())
timecodes.reserve(ranges.back().end + 2);
double time = 0.;
int frame = 0;
for (auto const& range : ranges) {