fixup! Extract VideoFilterGraphSet. rec2020
authorCarl Hetherington <cth@carlh.net>
Tue, 18 Oct 2022 07:30:17 +0000 (09:30 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 18 Oct 2022 07:30:17 +0000 (09:30 +0200)
src/lib/ffmpeg_decoder.cc

index 95dcc3042a63feef5dd75fb10a121e3bc78f31cc..27b7aa7b7514e4cdcc20d9c2c79c0dd87cf873a5 100644 (file)
@@ -77,7 +77,7 @@ using namespace dcpomatic;
 FFmpegDecoder::FFmpegDecoder (shared_ptr<const Film> film, shared_ptr<const FFmpegContent> c, bool fast)
        : FFmpeg (c)
        , Decoder (film)
-       , _filter_graphs(c->filters(), dcp::Fraction(lrint(_ffmpeg_content->video_frame_rate().get() * 1000), 1000))
+       , _filter_graphs(c->filters(), dcp::Fraction(lrint(_ffmpeg_content->video_frame_rate().get_value_or(24) * 1000), 1000))
 {
        if (c->video && c->video->use()) {
                video = make_shared<VideoDecoder>(this, c);