summaryrefslogtreecommitdiff
path: root/src/android/camera_device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/camera_device.cpp')
-rw-r--r--src/android/camera_device.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
index b32e8be5..4fe8d051 100644
--- a/src/android/camera_device.cpp
+++ b/src/android/camera_device.cpp
@@ -855,6 +855,13 @@ const camera_metadata_t *CameraDevice::getStaticMetadata()
minFps = std::max(1, minFps);
/*
+ * Force rounding errors so that we have the proper frame
+ * durations for when we reuse these variables later
+ */
+ minFrameDurationNsec = 1e9 / maxFps;
+ maxFrameDurationNsec = 1e9 / minFps;
+
+ /*
* Register to the camera service {min, max} and {max, max}
* intervals as requested by the metadata documentation.
*/