diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-26 20:47:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-26 20:47:56 +0100 |
| commit | ad5cc13514cb02b523fe1b553fc727e570dac6de (patch) | |
| tree | 49dffe2cf1006b48fb2d2b2854c83c9131d34d1c /src/lib/ffmpeg_decoder.cc | |
| parent | dc6df7d5474e65cbd2c05607cf9be2808dfbe59d (diff) | |
Fix build with newer libsub.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 9 |
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); |
