V4L/DVB: Fix case where fields were not at the correct start location
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Sun, 13 Jun 2010 20:00:23 +0000 (17:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:49:04 +0000 (14:49 -0300)
commit2584bc4337855382d23b4abfc2e2492df6fdeb41
tree35fb9a392cc369ccecb79212220a2fe837f599ac
parent7f8eacd2162a39ca7fc1240883118a786f147ccb
V4L/DVB: Fix case where fields were not at the correct start location

This patch address an arithmetic error for the case where the only remaining
content in the USB packet was the "225Axxxx" start of active video.  In cases
where that happened to be at the end of the frame, we would inject it into the
videobuf (which is incorrect).  This caused fields to be intermittently
rendered off by two pixels.

Thanks to Eugeniy Meshcheryakov for bringing this issue to my attention

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-video.c