summaryrefslogtreecommitdiff
path: root/src/lib/j2k_encoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-30 21:17:22 +0100
committerCarl Hetherington <cth@carlh.net>2019-11-30 21:17:22 +0100
commitb62cc4a8ced62d0d23da5a66494236be2822be79 (patch)
treef3fe5f9c364fb4a22b682c243c075ba19e76ec22 /src/lib/j2k_encoder.cc
parent7c839a2530c910f062f3da8a02b7c70603c1f31b (diff)
Don't say we're encoding at 0fps when we're waiting for the timing history to stablise.
Diffstat (limited to 'src/lib/j2k_encoder.cc')
-rw-r--r--src/lib/j2k_encoder.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/j2k_encoder.cc b/src/lib/j2k_encoder.cc
index 431a47e65..e5f127100 100644
--- a/src/lib/j2k_encoder.cc
+++ b/src/lib/j2k_encoder.cc
@@ -142,9 +142,9 @@ J2KEncoder::end ()
}
/** @return an estimate of the current number of frames we are encoding per second,
- * or 0 if not known.
+ * if known.
*/
-float
+optional<float>
J2KEncoder::current_encoding_rate () const
{
return _history.rate ();