summaryrefslogtreecommitdiff
path: root/src/stl_binary_reader.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-13 11:31:55 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-13 11:31:55 +0000
commitd15ef17dccf87b633d1971c38032a2049abe3db0 (patch)
tree3bbde3c1959bae6b0ad064972f95bd9406416fbb /src/stl_binary_reader.cc
parentacca8cb950de132fbc4be40e7dc7d294c6cb0a38 (diff)
Re-work time.
Diffstat (limited to 'src/stl_binary_reader.cc')
-rw-r--r--src/stl_binary_reader.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stl_binary_reader.cc b/src/stl_binary_reader.cc
index 2246a01..8a4bd1b 100644
--- a/src/stl_binary_reader.cc
+++ b/src/stl_binary_reader.cc
@@ -95,8 +95,8 @@ STLBinaryReader::STLBinaryReader (istream& in)
for (size_t i = 0; i < lines.size(); ++i) {
RawSubtitle sub;
- sub.from.set_frame (get_timecode (5));
- sub.to.set_frame (get_timecode (9));
+ sub.from = get_timecode (5);
+ sub.to = get_timecode (9);
sub.vertical_position.line = get_int (13, 1) + i;
sub.vertical_position.lines = maximum_rows;
sub.vertical_position.reference = TOP_OF_SCREEN;
@@ -174,10 +174,10 @@ STLBinaryReader::get_int (int offset, int length) const
return v;
}
-FrameTime
+Time
STLBinaryReader::get_timecode (int offset) const
{
- return FrameTime (_buffer[offset], _buffer[offset + 1], _buffer[offset + 2], _buffer[offset + 3]);
+ return Time::from_hmsf (_buffer[offset], _buffer[offset + 1], _buffer[offset + 2], _buffer[offset + 3]);
}
map<string, string>