summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-05-26 20:47:56 +0100
committerCarl Hetherington <cth@carlh.net>2024-05-26 20:47:56 +0100
commitad5cc13514cb02b523fe1b553fc727e570dac6de (patch)
tree49dffe2cf1006b48fb2d2b2854c83c9131d34d1c
parentdc6df7d5474e65cbd2c05607cf9be2808dfbe59d (diff)
Fix build with newer libsub.
-rw-r--r--src/lib/ffmpeg_decoder.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc
index 019e4f95c..45983795b 100644
--- a/src/lib/ffmpeg_decoder.cc
+++ b/src/lib/ffmpeg_decoder.cc
@@ -831,13 +831,8 @@ FFmpegDecoder::process_ass_subtitle (string ass, ContentTime from)
auto video_size = _ffmpeg_content->video->size();
DCPOMATIC_ASSERT(video_size);
- auto raw = sub::SSAReader::parse_line (
- base,
- text,
- video_size->width,
- video_size->height,
- sub::Colour(1, 1, 1)
- );
+ 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);
for (auto const& i: sub::collect<vector<sub::Subtitle>>(raw)) {
only_text()->emit_plain_start (from, i);