summaryrefslogtreecommitdiff
path: root/ipu3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ipu3.cpp')
-rw-r--r--ipu3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipu3.cpp b/ipu3.cpp
index 7ecd377..f3c65c7 100644
--- a/ipu3.cpp
+++ b/ipu3.cpp
@@ -118,7 +118,7 @@ void IPAIPU3::updateControls(const IPACameraSensorInfo &sensorInfo,
* exposure min, max and default and convert it from lines to
* microseconds.
*/
- double lineDuration = sensorInfo.lineLength / (sensorInfo.pixelRate / 1e6);
+ double lineDuration = sensorInfo.minLineLength / (sensorInfo.pixelRate / 1e6);
const ControlInfo &v4l2Exposure = sensorControls.find(V4L2_CID_EXPOSURE)->second;
int32_t minExposure = v4l2Exposure.min().get<int32_t>() * lineDuration;
int32_t maxExposure = v4l2Exposure.max().get<int32_t>() * lineDuration;