diff options
Diffstat (limited to 'src/lib/subrip.cc')
| -rw-r--r-- | src/lib/subrip.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/subrip.cc b/src/lib/subrip.cc index 3217a4df0..11ad3302d 100644 --- a/src/lib/subrip.cc +++ b/src/lib/subrip.cc @@ -66,13 +66,18 @@ SubRip::SubRip (shared_ptr<const SubRipContent> content) switch (state) { case COUNTER: { + if (line.empty ()) { + /* a blank line at the start is ok */ + break; + } + int x = 0; try { x = lexical_cast<int> (line); } catch (...) { } - + if (x == next_count) { state = METADATA; ++next_count; |
