diff --git a/libcamera/QualcommCameraHardware.cpp b/libcamera/QualcommCameraHardware.cpp index d4e5d16..e2c96e3 100644 --- a/libcamera/QualcommCameraHardware.cpp +++ b/libcamera/QualcommCameraHardware.cpp @@ -2015,7 +2015,9 @@ void QualcommCameraHardware::setZoom() multiplier = getParm("picture-size", picturesize); LOGV("Reducing picture quality; new multiplier: %d", multiplier); } - level = zoomsel * (iscamcorder ? (multiplier*5)/6 : 5); + level = zoomsel * (iscamcorder ? (multiplier*5) / 6 : 5); + //Update the parameters so initRaw doesn't use the wrong size later + mParameters.getPictureSize(&mRawWidth, &mRawHeight); LOGV("Level: %d, Multiplier: %d ZoomSel: %d",level,multiplier,zoomsel); } } else {