From 7fb9a874f6d97577bdd730d9c7a2518442145e87 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 9 Apr 2014 11:35:12 +0100 Subject: assert()s. --- src/lib/dcpomatic_time.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib') diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h index 59986e6d8..76fbe6902 100644 --- a/src/lib/dcpomatic_time.h +++ b/src/lib/dcpomatic_time.h @@ -135,6 +135,7 @@ public: template static ContentTime from_frames (int64_t f, T r) { + assert (r > 0); return ContentTime (f * HZ / r); } @@ -214,6 +215,7 @@ public: template static DCPTime from_frames (int64_t f, T r) { + assert (r > 0); return DCPTime (f * HZ / r); } -- cgit v1.2.3