diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-04-09 11:35:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-04-09 11:35:12 +0100 |
| commit | 7fb9a874f6d97577bdd730d9c7a2518442145e87 (patch) | |
| tree | 1e019a59b81e698d49b990ee3af7e4ea03c9c87a /src/lib | |
| parent | b890b9d41c0bb9e6e29b0e2482ae792059a82ea3 (diff) | |
assert()s.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/dcpomatic_time.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <class T> static ContentTime from_frames (int64_t f, T r) { + assert (r > 0); return ContentTime (f * HZ / r); } @@ -214,6 +215,7 @@ public: template <class T> static DCPTime from_frames (int64_t f, T r) { + assert (r > 0); return DCPTime (f * HZ / r); } |
