You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02: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:
@@ -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];
|
uint8_t *dst = out->data[plane] + i * out->linesize[plane];
|
||||||
|
|
||||||
for (int j = 0; j < w; j++)
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user