summaryrefslogtreecommitdiff
path: root/src/ssa_reader.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-02 23:37:33 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-02 23:37:34 +0200
commitb02d08547dd5739ede56cf73190b23f0bcd990a8 (patch)
tree97d02f851297b3d104363580eeb32471d7275f8b /src/ssa_reader.h
parent741ea7cbed5ea12b5b1f3e67b5aff0dd75124721 (diff)
Correctly parse \c tags in SSA (with no specified colour) to return to PrimaryColour.
This seems to be what libssa does.
Diffstat (limited to 'src/ssa_reader.h')
-rw-r--r--src/ssa_reader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ssa_reader.h b/src/ssa_reader.h
index e9bb061..45cc271 100644
--- a/src/ssa_reader.h
+++ b/src/ssa_reader.h
@@ -41,8 +41,8 @@ public:
SSAReader (FILE* f);
SSAReader (std::string subs);
- static std::vector<RawSubtitle> parse_line (RawSubtitle base, std::string line, int play_res_x, int play_res_y);
- static void parse_style (RawSubtitle& sub, std::string style, int play_res_x, int play_res_y);
+ static std::vector<RawSubtitle> parse_line(RawSubtitle base, std::string line, int play_res_x, int play_res_y, Colour primary_colour);
+ static void parse_style(RawSubtitle& sub, std::string style, int play_res_x, int play_res_y, Colour primary_colour);
private:
void read (boost::function<boost::optional<std::string> ()> get_line);