Various fixes to still-image mode.
[dcpomatic.git] / src / lib / film.cc
index b295bdc83e7c84c4f5fc555da540904aae38a722..2e2ec368abfafa74dd5e04989a9892a30a88b226 100644 (file)
@@ -678,6 +678,10 @@ Film::target_audio_sample_rate () const
 boost::optional<SourceFrame>
 Film::dcp_length () const
 {
+       if (content_type() == STILL) {
+               return _still_duration * frames_per_second();
+       }
+       
        if (!length()) {
                return boost::optional<SourceFrame> ();
        }