From 27a86b8ece6fa86827da90ff39eba339cf8ff449 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 9 Sep 2017 22:02:25 -0300 Subject: avfilter/vf_convolve: use av_clip_uint8 Fixes fate-source. --- libavfilter/vf_convolve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter') diff --git a/libavfilter/vf_convolve.c b/libavfilter/vf_convolve.c index 95280aa04e..63f3809598 100644 --- a/libavfilter/vf_convolve.c +++ b/libavfilter/vf_convolve.c @@ -243,7 +243,7 @@ static void ifft_horizontal(ConvolveContext *s, AVFrame *out, for (y = 0; y < h; y++) { uint8_t *dst = out->data[plane] + y * out->linesize[plane]; for (x = 0; x < w; x++) - dst[x] = av_clip(s->fft_hdata[plane][(y+oh) * n + x+ow].re * scale, 0, 255); + dst[x] = av_clip_uint8(s->fft_hdata[plane][(y+oh) * n + x+ow].re * scale); } } else { for (y = 0; y < h; y++) { -- cgit v1.2.3