summaryrefslogtreecommitdiff
path: root/src/stl_binary_reader.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-03-26 21:45:14 +0100
committerCarl Hetherington <cth@carlh.net>2020-03-26 21:45:14 +0100
commite951d8da6a9540d279b4987aaeea407510eef2ea (patch)
tree3042567cfc15dd400e6cf0c605609769d7423e78 /src/stl_binary_reader.cc
parent2731932b5f4bc7049e18d0146ebcea6287ea88c4 (diff)
Add a FIXME.
Diffstat (limited to 'src/stl_binary_reader.cc')
-rw-r--r--src/stl_binary_reader.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stl_binary_reader.cc b/src/stl_binary_reader.cc
index 9a7a150..e8e8832 100644
--- a/src/stl_binary_reader.cc
+++ b/src/stl_binary_reader.cc
@@ -211,6 +211,9 @@ void STLBinaryReader::read (shared_ptr<InputReader> reader)
RawSubtitle sub;
sub.from = reader->get_timecode(5, frame_rate);
sub.to = reader->get_timecode(9, frame_rate);
+ /* XXX: only the verticial position of the first TTI block should be used (says the spec),
+ so using reader->get_int(13, 1) here is wrong if i > 0
+ */
sub.vertical_position.line = reader->get_int(13, 1) + i;
sub.vertical_position.lines = maximum_rows;
sub.vertical_position.reference = TOP_OF_SCREEN;