From ad5cc13514cb02b523fe1b553fc727e570dac6de Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 26 May 2024 20:47:56 +0100 Subject: Fix build with newer libsub. --- src/lib/ffmpeg_decoder.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/lib/ffmpeg_decoder.cc') 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>(raw)) { only_text()->emit_plain_start (from, i); -- cgit v1.2.3