diff options
author | Andy Walls <awalls@radix.net> | 2008-12-12 18:00:29 -0500 |
---|---|---|
committer | Andy Walls <awalls@radix.net> | 2008-12-12 18:00:29 -0500 |
commit | 61a2de789c256e6a8c6c184ed07b18f06b19e1dd (patch) | |
tree | d2864a2455ca3ceb15dfe6493e7c96f3a1fb65f1 /linux/drivers/media/video/cx18/cx18-vbi.c | |
parent | 4b1de397a8c3dfe7e1f5e1b3165b70fb0193f099 (diff) | |
download | mediapointer-dvb-s2-61a2de789c256e6a8c6c184ed07b18f06b19e1dd.tar.gz mediapointer-dvb-s2-61a2de789c256e6a8c6c184ed07b18f06b19e1dd.tar.bz2 |
cx18: Enable raw VBI capture
From: Andy Walls <awalls@radix.net>
A combined authorship patch from Hans Verkuil and Andy Walls. Raw
VBI can now be captured but requires a video capture to be in progress as well.
Priority: normal
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-vbi.c')
-rw-r--r-- | linux/drivers/media/video/cx18/cx18-vbi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-vbi.c b/linux/drivers/media/video/cx18/cx18-vbi.c index 03f0e8130..fb595bd54 100644 --- a/linux/drivers/media/video/cx18/cx18-vbi.c +++ b/linux/drivers/media/video/cx18/cx18-vbi.c @@ -165,6 +165,9 @@ void cx18_process_vbi_data(struct cx18 *cx, struct cx18_buffer *buf, cx18_buf_swap(buf); + /* Skip 12 bytes of header that gets stuffed in */ + size -= 12; + memcpy(p, &buf->buf[12], size); type = p[3]; size = buf->bytesused = compress_raw_buf(cx, p, size); |