avfilter/vf_fftfilt: Use av_clip_uint8

The refactoring in 844890b1bc 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:
Martin Storsjö 2021-10-14 09:29:08 +03:00
parent c336c7a9d7
commit bb10f8d802
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}