Add basic windowed-sinc audio filters.
[dcpomatic.git] / src / lib / dcpomatic_time.cc
index ae4dea44f5c0752f6b387365713f772336e8d867..812c756ec27891224495b1a57b3e374ee793321d 100644 (file)
@@ -53,5 +53,11 @@ operator<< (ostream& s, DCPTime t)
 bool
 ContentTimePeriod::overlaps (ContentTimePeriod const & other) const
 {
-       return (from < other.to && to > other.from);
+       return (from < other.to && to >= other.from);
+}
+
+bool
+ContentTimePeriod::contains (ContentTime const & other) const
+{
+       return (from <= other && other < to);
 }