[media] em28xx: fix video data start position calculation in em28xx_urb_data_copy_vbi()
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Sun, 25 Nov 2012 09:37:32 +0000 (06:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 22 Dec 2012 21:02:32 +0000 (19:02 -0200)
commitb77e0c088f07817ecfc4e0a34d4d6a3f99a3ecaf
tree08efaf09cf19ed28963a4440db6fce2fa1e94f00
parent454fe92f01f8d669669619a9b301d133eda9d173
[media] em28xx: fix video data start position calculation in em28xx_urb_data_copy_vbi()

The header check/removal code at the end of function em28xx_urb_data_copy_vbi()
is obsolete, because this is already done earlier in this function.
In fact it is incomplete (doesn't check for vbi header) and causes trouble
when the first data bytes are the same as header bytes (which is fortunately
very unlikely).

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-video.c