diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-12 00:26:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-12 00:26:33 +0000 |
| commit | d79b29fd5130b3b9fdfb59689a3162b93f439cca (patch) | |
| tree | ee4aaaaf74fa882c5f9bbf6df32670c35880879d /src | |
| parent | 7114a99bf210c5d41a13161aea868fe68dd06e84 (diff) | |
Stub vertical position for SSA.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ssa_reader.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ssa_reader.cc b/src/ssa_reader.cc index f3180a7..d4908a2 100644 --- a/src/ssa_reader.cc +++ b/src/ssa_reader.cc @@ -26,6 +26,7 @@ #include <boost/bind.hpp> #include <boost/foreach.hpp> #include <sstream> +#include <iostream> #include <vector> using std::string; @@ -223,6 +224,12 @@ SSAReader::read (function<optional<string> ()> get_line) sub.bold = style.bold; sub.italic = style.italic; sub.effect = style.effect; + + /* XXX: arbitrary */ + sub.vertical_position.lines = 32; + sub.vertical_position.reference = TOP_OF_SUBTITLE; + sub.vertical_position.line = 0; + } else if (event_format[i] == "Text") { sub.text = event[i]; } |
