Am 30.03.2013 10:31, schrieb Hans Verkuil:
> em28xx: fix typo in scale_to_size().
>
> The second hscale should be vscale. This bug caused xawtv to fail because it
> cannot find a workable image size.
>
> Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>
> ---
>  drivers/media/usb/em28xx/em28xx-video.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/usb/em28xx/em28xx-video.c 
> b/drivers/media/usb/em28xx/em28xx-video.c
> index ef1959b..792ead1 100644
> --- a/drivers/media/usb/em28xx/em28xx-video.c
> +++ b/drivers/media/usb/em28xx/em28xx-video.c
> @@ -996,7 +996,7 @@ static int vidioc_try_fmt_vid_cap(struct file *file, void 
> *priv,
>       }
>  
>       size_to_scale(dev, width, height, &hscale, &vscale);
> -     scale_to_size(dev, hscale, hscale, &width, &height);
> +     scale_to_size(dev, hscale, vscale, &width, &height);
>  
>       f->fmt.pix.width = width;
>       f->fmt.pix.height = height;

Acked-by: Frank Schäfer <fschaefer....@googlemail.com>

Thanks for catching this !

Regards,
Frank
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to