qcap: Fix reversed max_fps and min_fps.

The maximum FPS is the inverse of the minimum frame time, not the maximum frame time, and vice versa.
This commit is contained in:
Zebediah Figura 2022-10-11 20:48:50 -05:00 committed by Alexandre Julliard
parent a19ceddeb0
commit 333a871549

View file

@ -528,8 +528,8 @@ static NTSTATUS v4l_device_create( void *args )
else if (frmival.type == V4L2_FRMIVAL_TYPE_STEPWISE
|| frmival.type == V4L2_FRMIVAL_TYPE_CONTINUOUS)
{
max_fps = frmival.stepwise.max.denominator / frmival.stepwise.max.numerator;
min_fps = frmival.stepwise.min.denominator / frmival.stepwise.min.numerator;
min_fps = frmival.stepwise.max.denominator / frmival.stepwise.max.numerator;
max_fps = frmival.stepwise.min.denominator / frmival.stepwise.min.numerator;
}
}
else