diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-13 16:38:11 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-13 16:38:11 +0000 |
commit | f8e40c64095cef74bb5b1ab3f382a4f8d88975aa (patch) | |
tree | 7d97f35324c474f00edacf7b5a4bcb49f6e16cd2 /linux/drivers/media/video/bt8xx/bttv-driver.c | |
parent | 4e1fb6e4fc1c61531db960676cee59c17496e2ea (diff) | |
download | mediapointer-dvb-s2-f8e40c64095cef74bb5b1ab3f382a4f8d88975aa.tar.gz mediapointer-dvb-s2-f8e40c64095cef74bb5b1ab3f382a4f8d88975aa.tar.bz2 |
bttv: Fix overlay divide error.
From: Robert Fitzsimons <robfitz@273k.net>
The initial work to convert the bttv driver to V4L2 "Partial conversion
from V4L1 to V4L2" (e84619b17440ccca4e4db7583d126c4189b987e5), missed
the line which set the appropriate overlay crop structure in the newly
allocated bttv_buffer. This then causes a divide error in the
bttv_calc_geo function.
Signed-off-by: Robert Fitzsimons <robfitz@273k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/bt8xx/bttv-driver.c')
-rw-r--r-- | linux/drivers/media/video/bt8xx/bttv-driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/bt8xx/bttv-driver.c b/linux/drivers/media/video/bt8xx/bttv-driver.c index 063bbcc58..0a9e01627 100644 --- a/linux/drivers/media/video/bt8xx/bttv-driver.c +++ b/linux/drivers/media/video/bt8xx/bttv-driver.c @@ -2801,6 +2801,7 @@ static int bttv_overlay(struct file *file, void *f, unsigned int on) if (on) { fh->ov.tvnorm = btv->tvnorm; new = videobuf_pci_alloc(sizeof(*new)); + new->crop = btv->crop[!!fh->do_crop].rect; bttv_overlay_risc(btv, &fh->ov, fh->ovfmt, new); } else { new = NULL; |