From ebf89c5e6200b65e5cc48bb7b3af23ab68ede749 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 9 Jul 2022 23:08:56 +0200 Subject: Fix font_id errors with files decoded by FFmpeg which have subtitles. I'm not sure if this goes far enough - it seems impossible to find all the font IDs used in a FFmpeg file without scanning it. I don't know if (for example) SSA-format font IDs make it through to DoM when decoded by FFmpeg. --- src/lib/ffmpeg_content.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index c791309ad..4bc88e1e4 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -320,6 +320,7 @@ FFmpegContent::examine (shared_ptr film, shared_ptr job) text.clear (); text.push_back (make_shared(this, TextType::OPEN_SUBTITLE, TextType::UNKNOWN)); _subtitle_stream = _subtitle_streams.front (); + text.front()->add_font(make_shared("")); } } -- cgit v1.2.3