Remove bogus check on bytesperline in the try_fmt_vid_out call.
Just set it to 0.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
        struct zoran_jpg_settings settings;
        int res = 0;
 
-       if (fmt->fmt.pix.bytesperline > 0)
-               return -EINVAL;
-
        if (fmt->fmt.pix.pixelformat != V4L2_PIX_FMT_MJPEG)
                return -EINVAL;
 
+       fmt->fmt.pix.bytesperline = 0;
+
        mutex_lock(&zr->resource_lock);
        settings = fh->jpg_settings;
 
        struct zoran *zr = fh->zr;
        int i;
 
-       if (fmt->fmt.pix.bytesperline > 0)
-               return -EINVAL;
-
        if (fmt->fmt.pix.pixelformat == V4L2_PIX_FMT_MJPEG)
                return zoran_try_fmt_vid_out(file, fh, fmt);