[media] v4l2: uvcvideo: Allow using larger buffers
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 9 Sep 2014 07:42:43 +0000 (04:42 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 23:37:55 +0000 (20:37 -0300)
commite93e7fd9f5a3fffec7792dbcc4c3574653effda7
tree52affd27c1669121c76913e136481d6803a27491
parent720b055d4b2ac8a73118019e1a01d8e6c8f63332
[media] v4l2: uvcvideo: Allow using larger buffers

A test in uvc_video_decode_isoc() checks whether an image has been
received from the camera completely. For this the data amount is compared
to the buffer length, which, however, doesn't have to be equal to the
image size. Switch to using formats .sizeimage field for an exact
expected image size.

[Renamed image_size to frame_size]

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/uvc/uvc_v4l2.c
drivers/media/usb/uvc/uvc_video.c
drivers/media/usb/uvc/uvcvideo.h