videoscaler: remove check for below zero for unsigned value
authorLuis de Bethencourt <luis@debethencourt.com>
Mon, 29 Jun 2015 15:16:06 +0000 (16:16 +0100)
committerLuis de Bethencourt <luis@debethencourt.com>
Mon, 29 Jun 2015 15:18:49 +0000 (16:18 +0100)
commit6e263cc5f64710fc09198a763244cbd4ac82fab6
treee9940583c84f2fd6020d8c7d6e3a876cd4d8e46f
parentc5dbee33b0a9da4b359357d72d462399eb9e4986
videoscaler: remove check for below zero for unsigned value

CLAMP checks both if value is '< 0' and '> max'. Value will never be a negative
number since it is a division of an unsigned integer (i). Removing that check
and only checking if it is bigger than max and setting it appropriately.

CID #1308950
gst-libs/gst/video/video-scaler.c