diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/subrip_reader.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/subrip_reader.cc b/src/subrip_reader.cc index b5d0446..5625679 100644 --- a/src/subrip_reader.cc +++ b/src/subrip_reader.cc @@ -156,6 +156,9 @@ SubripReader::convert_time (string t) vector<string> b; boost::algorithm::split (b, a[2], boost::is_any_of (",")); + if (b.size() != 2) { + throw SubripError (t, "time in the format h:m:s,ms", _context); + } return Time::from_hms ( lexical_cast<int> (a[0]), |
