diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-12-13 12:53:03 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-12-13 12:53:03 +0000 |
| commit | 0821680fab2fec732b3be8df931671929a4ad7bf (patch) | |
| tree | 3db459e57a75912c3c5767ef3e9bf878e24b3b4c /src/lib | |
| parent | d84961be5dc0c6055150e74cef3755a78182a166 (diff) | |
Fix crash on startup.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/video_content.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/video_content.cc b/src/lib/video_content.cc index cd96e19bc..5ca48254c 100644 --- a/src/lib/video_content.cc +++ b/src/lib/video_content.cc @@ -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()); + } } |
