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 <michael.jones@xxxxxxxxxxxxxxxx> --- contrib/test/capture-example.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) 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); -- 1.7.5.4 MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler Registergericht: Amtsgericht Stuttgart, HRB 271090 Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner, Erhard Meier -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html