Fix font_id errors with files decoded by FFmpeg which have subtitles.
[dcpomatic.git] / src / lib / ffmpeg_content.cc
index c791309ad04dae2280ce31b4e6146e4385b3ace8..4bc88e1e4937ca2e896101ae8903c0539893cd7e 100644 (file)
@@ -320,6 +320,7 @@ FFmpegContent::examine (shared_ptr<const Film> film, shared_ptr<Job> job)
                        text.clear ();
                        text.push_back (make_shared<TextContent>(this, TextType::OPEN_SUBTITLE, TextType::UNKNOWN));
                        _subtitle_stream = _subtitle_streams.front ();
+                       text.front()->add_font(make_shared<dcpomatic::Font>(""));
                }
        }