libcamera: converter_v4l2_m2m: Always set stride
Ensure the stride is properly set after a call to validateOutput(). Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Isaac Scott <isaac.scott@ideasonboard.com> Reviewed-by: Umang Jain <uajain@igalia.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
@@ -680,6 +680,7 @@ int V4L2M2MConverter::validateOutput(StreamConfiguration *cfg, bool *adjusted,
|
||||
|
||||
const Size cfgSize = cfg->size;
|
||||
cfg->size = adjustSizes(cfgSize, it->second, align);
|
||||
cfg->stride = PixelFormatInfo::info(cfg->pixelFormat).stride(cfg->size.width, 0);
|
||||
|
||||
if (cfg->size.isNull())
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user