diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-10 22:06:29 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-10 22:06:29 +0000 |
| commit | f0957fd41d1915b8046dc0c2aeb662e1e8c288c7 (patch) | |
| tree | 64611679c867ec419759f29da10fa3060133c544 /src/lib/dcpomatic_time.h | |
| parent | 70684e31a96bd7d4c7b09d525902959345b76526 (diff) | |
Only fill video gaps if they are at least half a frame in length.
Fixes lack of image (sometimes) when trimming drop-frame content.
Diffstat (limited to 'src/lib/dcpomatic_time.h')
| -rw-r--r-- | src/lib/dcpomatic_time.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h index c687569ec..a09dd93e9 100644 --- a/src/lib/dcpomatic_time.h +++ b/src/lib/dcpomatic_time.h @@ -113,6 +113,10 @@ public: return *this; } + Time<S, O> operator/ (int o) const { + return Time<S, O> (_t / o); + } + /** Round up to the nearest sampling interval * at some sampling rate. * @param r Sampling rate. |
