summaryrefslogtreecommitdiff
path: root/libavfilter/vf_convolve.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-09-09 22:02:25 -0300
committerJames Almer <jamrial@gmail.com>2017-09-09 22:02:25 -0300
commit27a86b8ece6fa86827da90ff39eba339cf8ff449 (patch)
tree2dd1e0ec081e47e2fcd355b98c24c97bb13c6535 /libavfilter/vf_convolve.c
parentd98d29a775d6de9357731fec872642644e57b233 (diff)
downloadffmpeg-27a86b8ece6fa86827da90ff39eba339cf8ff449.tar.gz
avfilter/vf_convolve: use av_clip_uint8
Fixes fate-source.
Diffstat (limited to 'libavfilter/vf_convolve.c')
-rw-r--r--libavfilter/vf_convolve.c2
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++) {