X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent_subtitle.cc;h=c4cfafad5bf99f243e0a63bc6ef579ba69018826;hb=78dd04db5ee5d1aa5fc915f04dc71cb53d33d059;hp=93e0677bb7c3c49031555af796a3425ae49ccd4c;hpb=946dbad9821e676f1d8fdc5abba459da54b8e84c;p=dcpomatic.git diff --git a/src/lib/content_subtitle.cc b/src/lib/content_subtitle.cc index 93e0677bb..c4cfafad5 100644 --- a/src/lib/content_subtitle.cc +++ b/src/lib/content_subtitle.cc @@ -23,9 +23,9 @@ ContentTimePeriod ContentTextSubtitle::period () const { /* XXX: assuming we have some subs and they are all at the same time */ - assert (!subs.empty ()); + DCPOMATIC_ASSERT (!subs.empty ()); return ContentTimePeriod ( - ContentTime::from_seconds (double (subs.front().in().to_ticks()) / 250), - ContentTime::from_seconds (double (subs.front().out().to_ticks()) / 250) + ContentTime::from_seconds (subs.front().in().to_seconds()), + ContentTime::from_seconds (subs.front().out().to_seconds()) ); }