Fix crash on startup.
authorCarl Hetherington <cth@carlh.net>
Wed, 13 Dec 2017 12:53:03 +0000 (12:53 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 13 Dec 2017 12:53:03 +0000 (12:53 +0000)
src/lib/video_content.cc

index cd96e19bc8b85100d9a052889870a28dd8d01761..5ca48254cd694f40c4cf57d70d85dad3658360cb 100644 (file)
@@ -548,5 +548,7 @@ VideoContent::modify_position (DCPTime& pos) const
 void
 VideoContent::modify_trim_start (ContentTime& trim) const
 {
-       trim = trim.ceil (_parent->video_frame_rate().get());
+       if (_parent->video_frame_rate()) {
+               trim = trim.ceil (_parent->video_frame_rate().get());
+       }
 }