mirror of
https://github.com/adulau/aha.git
synced 2025-01-04 07:03:38 +00:00
V4L/DVB (7197): bttv: Fix overlay divide error
The initial work to convert the bttv driver to V4L2 "Partial conversion
from V4L1 to V4L2" (e84619b174
), 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>
This commit is contained in:
parent
c9fe1d6ba6
commit
7c018804c0
1 changed files with 1 additions and 0 deletions
|
@ -2760,6 +2760,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;
|
||||
|
|
Loading…
Reference in a new issue