mirror of https://github.com/odrling/Aegisub
Fix crash on v1 timecode files with zero override ranges
This commit is contained in:
parent
e75fc089d3
commit
72748d45f7
|
@ -103,6 +103,7 @@ int64_t v1_parse(line_iterator<std::string> file, std::string line, std::vector<
|
|||
|
||||
std::sort(begin(ranges), end(ranges));
|
||||
|
||||
if (!ranges.empty())
|
||||
timecodes.reserve(ranges.back().end + 2);
|
||||
double time = 0.;
|
||||
int frame = 0;
|
||||
|
|
Loading…
Reference in New Issue