summaryrefslogtreecommitdiff
path: root/src/ssa_reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssa_reader.cc')
-rw-r--r--src/ssa_reader.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ssa_reader.cc b/src/ssa_reader.cc
index 859a00e..c76a78d 100644
--- a/src/ssa_reader.cc
+++ b/src/ssa_reader.cc
@@ -274,6 +274,15 @@ SSAReader::read (function<optional<string> ()> get_line)
vector<string> event;
split (event, body, is_any_of (","));
+ /* There may be commas in the subtitle part; reassemble any extra parts
+ from when we just split it.
+ */
+ while (event.size() > event_format.size()) {
+ string const ex = event.back ();
+ event.pop_back ();
+ event.back() += "," + ex;
+ }
+
SUB_ASSERT (!event.empty());
SUB_ASSERT (event_format.size() == event.size());