Ticket #2954: picture-attribute-fix.patch
| File picture-attribute-fix.patch, 531 bytes (added by , 19 years ago) |
|---|
-
libs/libmythtv/channel.cpp
1120 1120 return -1; 1121 1121 } 1122 1122 1123 return (int)(65535.0 / (qctrl.maximum - qctrl.minimum) * ctrl.value); 1123 float mult = 65535.0 / (qctrl.maximum - qctrl.minimum); 1124 return min(max((int)(mult * (ctrl.value - qctrl.minimum)), 0), 65525); 1124 1125 } 1125 1126 1126 1127 static int get_v4l1_attribute_value(int videofd, int v4l2_attrib)
