linux/drivers/media/video/zoran
Trent Piepho 171f48e254 V4L/DVB (11660): zoran: fix bug when enumerating format -1
If someone requests a format at fmt->index == (unsigned)-1 and the first
format in the array doesn't have the requested type then num will still be
-1 when it's compared to fmt->index and there will appear to be a match.

Restructure the loop so this can't happen.  It's simpler this way too.  The
unnecessary check for (unsigned)fmt->index < 0 found by Roel Kluin
<roel.kluin@gmail.com> is removed this way too.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-09 18:50:54 -03:00
..
Kconfig V4L/DVB (10714): zoran et al: convert zoran i2c modules to V4L2. 2009-03-30 12:42:57 -03:00
Makefile
videocodec.c
videocodec.h V4L/DVB (10730): v4l-dvb: cleanup obsolete references to v4l1 headers. 2009-03-30 12:42:59 -03:00
zoran_card.c V4L/DVB (11380): v4l2-subdev: change s_routing prototype 2009-04-06 21:44:27 -03:00
zoran_card.h V4L/DVB (10711): zoran: fix TRY_FMT support 2009-03-30 12:42:56 -03:00
zoran_device.c V4L/DVB (11380): v4l2-subdev: change s_routing prototype 2009-04-06 21:44:27 -03:00
zoran_device.h V4L/DVB (11022): zoran/bt819: use new notify functionality. 2009-03-30 12:43:21 -03:00
zoran_driver.c V4L/DVB (11660): zoran: fix bug when enumerating format -1 2009-05-09 18:50:54 -03:00
zoran_procfs.c V4L/DVB (10730): v4l-dvb: cleanup obsolete references to v4l1 headers. 2009-03-30 12:42:59 -03:00
zoran_procfs.h
zoran.h V4L/DVB (11377): v4l: increase version numbers of drivers converted to v4l2_subdev. 2009-04-06 21:44:26 -03:00
zr36016.c V4L/DVB (10730): v4l-dvb: cleanup obsolete references to v4l1 headers. 2009-03-30 12:42:59 -03:00
zr36016.h
zr36050.c V4L/DVB (10730): v4l-dvb: cleanup obsolete references to v4l1 headers. 2009-03-30 12:42:59 -03:00
zr36050.h
zr36057.h
zr36060.c V4L/DVB (10730): v4l-dvb: cleanup obsolete references to v4l1 headers. 2009-03-30 12:42:59 -03:00
zr36060.h