[FFmpeg-cvslog] avfilter/vf_convolve: use av_clip_uint8
James Almer
git at videolan.org
Sun Sep 10 04:02:59 EEST 2017
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Sep 9 22:02:25 2017 -0300| [27a86b8ece6fa86827da90ff39eba339cf8ff449] | committer: James Almer
avfilter/vf_convolve: use av_clip_uint8
Fixes fate-source.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=27a86b8ece6fa86827da90ff39eba339cf8ff449
---
libavfilter/vf_convolve.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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++) {
More information about the ffmpeg-cvslog
mailing list