From eb17a7906bb2ca000c0b8519092a3fac97647225 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 28 Dec 2019 22:38:52 -0300 Subject: [PATCH] avfilter/vf_vectorscope: use av_clip_uint8() Fixes fate-source Signed-off-by: James Almer --- libavfilter/vf_vectorscope.c | 4 ++-- 1 file 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]); } } }