[MPlayer-dev-eng] [PATCH] Fix conversion for v4l2 video controls

Vladimir Voroshilov voroshil at gmail.com
Sun Sep 16 18:53:45 CEST 2007


Hi, All

I hve found some trange conversion in v4l2's set(get)_control

It converts (0-50) range to drivers' (min-default) and (50-100) to
(default-max).
(The same is doing for (-100-0) and (0-100) ranges).

Attached patch changes conversion to (0-100) -> (min-max)

Otherwise one of ranges is unsuable for cases when default==min or
default==max (and even cause devision by zero error).

I'll apply it in two days if nobody will say something against.


-- 
Regards,
Vladimir Voroshilov     mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tv_v4l2_control_fix.diff
Type: text/x-diff
Size: 2686 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070916/2c4df059/attachment.diff>


More information about the MPlayer-dev-eng mailing list