Fix build with newer libsub.
authorCarl Hetherington <cth@carlh.net>
Sun, 26 May 2024 19:47:56 +0000 (20:47 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 26 May 2024 19:47:56 +0000 (20:47 +0100)
src/lib/ffmpeg_decoder.cc

index 019e4f95c6080061579178da6b9cdd2ab87d5188..45983795b25485f91b4e79dc33339540a28f365e 100644 (file)
@@ -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);