Skip to content

Commit

Permalink
mmalomx_util: Correct mapping errors in mmalomx_param_mapping_fps_range
Browse files Browse the repository at this point in the history
Fixes mapping error from xFramerateLow to fps_high.

Fixes raspberrypi#456.
  • Loading branch information
6by9 authored and popcornmix committed Mar 18, 2018
1 parent de372ec commit 07d8891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interface/mmal/openmaxil/mmalomx_util_params_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,12 @@ static MMAL_STATUS_T mmalomx_param_mapping_fps_range(MMALOMX_PARAM_MAPPING_DIREC
if (dir == MMALOMX_PARAM_MAPPING_TO_MMAL)
{
mmal->fps_low = mmal_rational_from_fixed_16_16(omx->xFramerateLow);
mmal->fps_high = mmal_rational_from_fixed_16_16(omx->xFramerateLow);
mmal->fps_high = mmal_rational_from_fixed_16_16(omx->xFramerateHigh);
}
else
{
omx->xFramerateLow = mmal_rational_to_fixed_16_16(mmal->fps_low);
omx->xFramerateLow = mmal_rational_to_fixed_16_16(mmal->fps_high);
omx->xFramerateHigh = mmal_rational_to_fixed_16_16(mmal->fps_high);
}

return MMAL_SUCCESS;
Expand Down

0 comments on commit 07d8891

Please sign in to comment.