In particular for the encoder where the CAPTURE format dictates
the parameters given to the codec we need to be able to set the
value passed as the crop_height for the compressed format.
There's no crop available for cropped modes, so always set
crop_height to the requested height.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE);
q_data->crop_width = f->fmt.pix_mp.width;
q_data->height = f->fmt.pix_mp.height;
- if (!q_data->selection_set)
+ if (!q_data->selection_set ||
+ (q_data->fmt->flags & V4L2_FMT_FLAG_COMPRESSED))
q_data->crop_height = requested_height;
/*