]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit5bde7dec279cdc03961fe86350d4a6bbff2cb54a
tree08efaf09cf19ed28963a4440db6fce2fa1e94f00
parentfda3a3e46c89500d81fe53b15fc06465bcf1c2ea
[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