diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-04-17 00:55:12 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-04-17 16:32:08 +0300 |
commit | 35269f04578082675778ef7ce6eab2fb4d559d9a (patch) | |
tree | f76d8a7e6ebe4b741ccf4327fb84263da8bd319f /src | |
parent | 8defb069eb4a68d62ebf312ec5a76eee162ad970 (diff) |
libcamera: v4l2_videodevice: Return correct format for metadata
When setting format on a metadata video device, the returned format
isn't updated with the actual set format due to a typo. Fix it.
Reported-by: Coverity CID=279098
Fixes: 629e9301c518 ("libcamera: v4l2_device: Add META support in g/s_fmt")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/v4l2_videodevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/v4l2_videodevice.cpp b/src/libcamera/v4l2_videodevice.cpp index 439a9c90..a959cfe6 100644 --- a/src/libcamera/v4l2_videodevice.cpp +++ b/src/libcamera/v4l2_videodevice.cpp @@ -848,7 +848,7 @@ int V4L2VideoDevice::setFormatMeta(V4L2DeviceFormat *format) */ format->size.width = 0; format->size.height = 0; - format->fourcc = format->fourcc; + format->fourcc = V4L2PixelFormat(pix->dataformat); format->planesCount = 1; format->planes[0].bpl = pix->buffersize; format->planes[0].size = pix->buffersize; |