Commit:     7c018804c0900e7be18507f1eb24e631aa9816ea
Parent:     c9fe1d6ba603ddc5f2ef0a6b84f9df2bb4c679f1
Author:     Robert Fitzsimons <[EMAIL PROTECTED]>
AuthorDate: Wed Feb 13 16:38:11 2008 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Mon Feb 18 12:18:03 2008 -0300

    V4L/DVB (7197): bttv: Fix overlay divide error
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
 drivers/media/video/bt8xx/bttv-driver.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/bt8xx/bttv-driver.c 
index d9ce9a4..5404fcc 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -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;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to