diff options
author | Martin Storsjö <martin@martin.st> | 2021-10-14 09:29:08 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2021-10-14 14:05:39 +0300 |
commit | bb10f8d8029026fed0292e01ac7cd56f9d472f0f (patch) | |
tree | 018048e1de31a875a383024e2fb313ae5104707a /libavfilter | |
parent | c336c7a9d74da52727bd47755126d835513baa8f (diff) |
avfilter/vf_fftfilt: Use av_clip_uint8
The refactoring in 844890b1bc86316a38bc9e1dbf8ba0dd254307e3 caused
fate-source to point out that this could be av_clip_uintp2 (or
rather av_clip_uint8).
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_fftfilt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_fftfilt.c b/libavfilter/vf_fftfilt.c index 30c0b2fc86..28845a5013 100644 --- a/libavfilter/vf_fftfilt.c +++ b/libavfilter/vf_fftfilt.c @@ -191,7 +191,7 @@ static int irdft_horizontal8(AVFilterContext *ctx, void *arg, int jobnr, int nb_ uint8_t *dst = out->data[plane] + i * out->linesize[plane]; for (int j = 0; j < w; j++) - dst[j] = av_clip(lrintf(src[j] * scale), 0, 255); + dst[j] = av_clip_uint8(lrintf(src[j] * scale)); } } |