mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue