Skip to contentSkip to conversation

gspca - ov519: Fix a regression for ovfx2 webcams

PATCH New Jean-Francois Moine 1 participant 1 message May 22, 2011 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gspca - ov519: Fix a regression for ovfx2 webcams

By git commit c42cedbb658b, the bulk transfer size was changed to a lower value for resolutions != 1600x1200, but the image extraction routine still worked with the previous value, giving bad truncated images.

---
 drivers/media/video/gspca/ov519.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/video/gspca/ov519.c +1 -1
index 36a46fc..5ac2f3c 100644
@@ -4478,7 +4478,7 @@ static void ovfx2_pkt_scan(struct gspca_dev *gspca_dev,
 	gspca_frame_add(gspca_dev, INTER_PACKET, data, len);
 
 	/* A short read signals EOF */
-	if (len < OVFX2_BULK_SIZE) {
+	if (len < gspca_dev->cam.bulk_size) {
 		/* If the frame is short, and it is one of the first ones
 		   the sensor and bridge are still syncing, so drop it. */
 		if (sd->first_frame) {
Signature · 1 line
1.7.5.1