video-resampler: remove check for below zero for unsigned value

CLAMP checks both if n_taps is '< 0' and '> max_taps'. n_taps will never be a
negative number because it is an unsigned integer. Removing that check and only
making sure it isn't set bigger than max.

CID 1256558
This commit is contained in:
Luis de Bethencourt 2015-01-09 15:28:06 +00:00
parent 7a35321710
commit 23880ec874

View file

@ -344,7 +344,7 @@ gst_video_resampler_init (GstVideoResampler * resampler,
}
max_taps = GET_OPT_MAX_TAPS (options);
n_taps = CLAMP (n_taps, 0, max_taps);
n_taps = MIN (n_taps, max_taps);
switch (method) {
case GST_VIDEO_RESAMPLER_METHOD_NEAREST: