This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/v4l-utils.git tree:

Subject: capture-example: don't use bytesperline when allocating buffers
Author:  Michael Jones <[email protected]>
Date:    Mon Jul 18 07:00:10 2011 -0300

This removes "buggy driver paranoia", which set sizeimage equal to
at least width * height * 2. This was a false assumption when the
pixel format only required 1 byte per pixel. Originally, the
paranoia was in place to handle drivers which incorrectly set
sizeimage=0, but these seem to have been fixed.

Signed-off-by: Michael Jones <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 contrib/test/capture-example.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

---

http://git.linuxtv.org/v4l-utils.git?a=commitdiff;h=6235fdde7448138a57ab5b5a471b10fcd452ab77

diff --git a/contrib/test/capture-example.c b/contrib/test/capture-example.c
index 2f77cbf..417615a 100644
--- a/contrib/test/capture-example.c
+++ b/contrib/test/capture-example.c
@@ -498,14 +498,6 @@ static void init_device(void)
                        errno_exit("VIDIOC_G_FMT");
        }
 
-       /* Buggy driver paranoia. */
-       min = fmt.fmt.pix.width * 2;
-       if (fmt.fmt.pix.bytesperline < min)
-               fmt.fmt.pix.bytesperline = min;
-       min = fmt.fmt.pix.bytesperline * fmt.fmt.pix.height;
-       if (fmt.fmt.pix.sizeimage < min)
-               fmt.fmt.pix.sizeimage = min;
-
        switch (io) {
        case IO_METHOD_READ:
                init_read(fmt.fmt.pix.sizeimage);

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to