diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-05 00:52:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-12-09 01:40:29 +0100 |
| commit | 42fa4dea81483359bf67676e2a931db103531a69 (patch) | |
| tree | 5272e92d171132309b46b9fb5ece2f9cef83a462 | |
| parent | 82c4fff88090f91509b386e3d05a1f5e1ae5e839 (diff) | |
Cleanup: use default initializers.
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 9713a26f6..09d1e2786 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -671,7 +671,7 @@ FFmpegDecoder::decode_and_process_subtitle_packet (AVPacket* packet) if (sub_period.to) { _current_subtitle_to = *sub_period.to + _pts_offset; } else { - _current_subtitle_to = optional<ContentTime>(); + _current_subtitle_to = {}; } ContentBitmapText bitmap_text(from); @@ -826,12 +826,11 @@ FFmpegDecoder::process_ass_subtitle (string ass, ContentTime from) return; } - sub::RawSubtitle base; auto video_size = _ffmpeg_content->video->size(); DCPOMATIC_ASSERT(video_size); sub::SSAReader::Context context(video_size->width, video_size->height, sub::Colour(1, 1, 1)); - auto const raw = sub::SSAReader::parse_line(base, text, context); + auto const raw = sub::SSAReader::parse_line({}, text, context); for (auto const& i: sub::collect<vector<sub::Subtitle>>(raw)) { only_text()->emit_plain_start (from, i); |
