[media] gspca - main: Better values for V4L2_FMT_FLAG_COMPRESSED
authorJean-François Moine <moinejf@free.fr>
Wed, 10 Aug 2011 10:32:57 +0000 (07:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 11 Sep 2011 12:27:41 +0000 (09:27 -0300)
commitb796fb6ed032b0ccdb769b3b3bce5fb2b186a8f8
tree55add7d2625d411797d72de40d2fab9601e787f6
parent480992b357d153b8417ba242fc43e96d90cff94c
[media] gspca - main: Better values for V4L2_FMT_FLAG_COMPRESSED

In vidioc_enum_fmt_vid_cap, the 'compressed' flag was set from the
pixelformat, and all pixelformats were not treated.
Now, images are told as compressed when the image size is smaller than
its number of pixels.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c