diff options
author | James Almer <jamrial@gmail.com> | 2017-09-09 22:02:25 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-09 22:02:25 -0300 |
commit | 27a86b8ece6fa86827da90ff39eba339cf8ff449 (patch) | |
tree | 2dd1e0ec081e47e2fcd355b98c24c97bb13c6535 /libavfilter | |
parent | d98d29a775d6de9357731fec872642644e57b233 (diff) |
avfilter/vf_convolve: use av_clip_uint8
Fixes fate-source.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_convolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |