Home
last modified time | relevance | path

Searched hist:"7691 d900b9291417dc6a88262f43176a63536c31" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/usb/uvc/
H A Duvc_driver.cdiff 7691d900b9291417dc6a88262f43176a63536c31 Fri May 05 06:45:24 CDT 2023 Laurent Pinchart <laurent.pinchart@ideasonboard.com> media: uvcvideo: Increment intervals pointer at end of parsing

The intervals pointer is incremented for each interval when parsing the
format descriptor. This doesn't cause any issue as such, but gets in the
way of constifying some pointers. Modify the parsing code to index the
intervals pointer as an array and increment it in one go at end of
parsing.

Careful readers will notice that the maxIntervalIndex variable is set to
1 instead of n - 2 when bFrameIntervalType has a zero value. This is
functionally equivalent, as n is equal to 3 in that case.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>