X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_content.cc;h=d3e0fa7b25687010a18cc2797db9aa9a76df3483;hb=4e411ea97b4dab8a5fa282d1d4cf7971ef1e24ad;hp=9889d511cd45016c97b08746bce15856a953e265;hpb=3574212ee42b2bd924eb95d5c0f4f69ec9e0a2f0;p=dcpomatic.git diff --git a/src/lib/ffmpeg_content.cc b/src/lib/ffmpeg_content.cc index 9889d511c..d3e0fa7b2 100644 --- a/src/lib/ffmpeg_content.cc +++ b/src/lib/ffmpeg_content.cc @@ -33,6 +33,7 @@ extern "C" { #include "film.h" #include "log.h" #include "exceptions.h" +#include "frame_rate_change.h" #include "i18n.h" @@ -399,6 +400,9 @@ bool FFmpegContent::has_subtitle_during (ContentTimePeriod period) const { shared_ptr stream = subtitle_stream (); + if (!stream) { + return false; + } /* XXX: inefficient */ for (vector::const_iterator i = stream->periods.begin(); i != stream->periods.end(); ++i) {