mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
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>
This commit is contained in:
parent
c336c7a9d7
commit
bb10f8d802
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user