projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d98d29a
)
avfilter/vf_convolve: use av_clip_uint8
author
James Almer
<jamrial@gmail.com>
Sun, 10 Sep 2017 01:02:25 +0000
(22:02 -0300)
committer
James Almer
<jamrial@gmail.com>
Sun, 10 Sep 2017 01:02:25 +0000
(22:02 -0300)
Fixes fate-source.
libavfilter/vf_convolve.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_convolve.c
b/libavfilter/vf_convolve.c
index
95280aa
..
63f3809
100644
(file)
--- 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++) {