summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavfilter/vf_vectorscope.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_vectorscope.c b/libavfilter/vf_vectorscope.c
index e25214355e..37e36b9eef 100644
--- a/libavfilter/vf_vectorscope.c
+++ b/libavfilter/vf_vectorscope.c
@@ -781,8 +781,8 @@ static void vectorscope8(VectorscopeContext *s, AVFrame *in, AVFrame *out, int p
for (j = 0; j < out->width; j++) {
const int pos = i * dlinesize + j;
if (dpd[pos]) {
- dpx[pos] = av_clip(dpd[pos] + dpd[pos] * s->ftint[0], 0, 255);
- dpy[pos] = av_clip(dpd[pos] + dpd[pos] * s->ftint[1], 0, 255);
+ dpx[pos] = av_clip_uint8(dpd[pos] + dpd[pos] * s->ftint[0]);
+ dpy[pos] = av_clip_uint8(dpd[pos] + dpd[pos] * s->ftint[1]);
}
}
}