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:
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…
Reference in New Issue