gaudieffects: remove < 0 comparison on guint32
authorLuis de Bethencourt <luis.bg@samsung.com>
Thu, 30 Oct 2014 17:06:01 +0000 (17:06 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Thu, 30 Oct 2014 17:06:01 +0000 (17:06 +0000)
commit3e452352f0a50ff31cbeca59018fd36074f0b679
tree6cd7a9018e407a921adfd2e271e82abfb24d6fcc
parent267bc774ecb76aa64088b9b8cb75c54d4df54bf0
gaudieffects: remove < 0 comparison on guint32

Current CLAMP checks both if the value is below 0 or above 255. Considering it
is an unsigned value it can never be less than zero, so that comparison is
unnecessary. Switching to using if just for the upper bound.

CID #1139796
gst/gaudieffects/gstsolarize.c