summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-07-09 00:43:09 +0100
committerCarl Hetherington <cth@carlh.net>2015-07-09 00:43:09 +0100
commit020fec3da7074f2770bb6e51d8e34b6535228347 (patch)
treeddd2832f16d88d903dcf15ea2dfc374c749ba638 /src
parentdc1bedc93491fc2553252322425f9a5f860f1e5c (diff)
Missing include.
Diffstat (limited to 'src')
-rw-r--r--src/sub_time.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sub_time.cc b/src/sub_time.cc
index 7d8ebb6..68dac19 100644
--- a/src/sub_time.cc
+++ b/src/sub_time.cc
@@ -21,6 +21,7 @@
#include "exceptions.h"
#include <cmath>
#include <iomanip>
+#include <iostream>
using std::ostream;
using std::cout;
@@ -44,7 +45,7 @@ sub::operator< (sub::Time const & a, sub::Time const & b)
if ((a._rate && !b._rate) || (!a._rate && b._rate)) {
throw UnknownFrameRateError ();
}
-
+
return (a._frames * a._rate.get().numerator * b._rate.get().denominator) < (b._frames * b._rate.get().numerator * a._rate.get().denominator);
}
@@ -63,7 +64,7 @@ sub::operator> (sub::Time const & a, sub::Time const & b)
if ((a._rate && !b._rate) || (!a._rate && b._rate)) {
throw UnknownFrameRateError ();
}
-
+
return (a._frames * a._rate.get().numerator * b._rate.get().denominator) > (b._frames * b._rate.get().numerator * a._rate.get().denominator);
}
@@ -131,7 +132,7 @@ Time::frames_at (Rational rate) const
if (!_rate) {
throw UnknownFrameRateError ();
}
-
+
return rint (double (_frames) * _rate.get().denominator * rate.numerator / (_rate.get().numerator * rate.denominator));
}