mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-09 08:09:11 +00:00
avfilter/vf_convolve: use av_clip_uint8
Fixes fate-source.
This commit is contained in:
parent
d98d29a775
commit
27a86b8ece
@ -243,7 +243,7 @@ static void ifft_horizontal(ConvolveContext *s, AVFrame *out,
|
|||||||
for (y = 0; y < h; y++) {
|
for (y = 0; y < h; y++) {
|
||||||
uint8_t *dst = out->data[plane] + y * out->linesize[plane];
|
uint8_t *dst = out->data[plane] + y * out->linesize[plane];
|
||||||
for (x = 0; x < w; x++)
|
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 {
|
} else {
|
||||||
for (y = 0; y < h; y++) {
|
for (y = 0; y < h; y++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user