The refactoring in 844890b1bc86316a38bc9e1dbf8ba0dd254307e3 caused fate-source to point out that this could be av_clip_uintp2 (or rather av_clip_uint8).
Unified · Split
| @@ -191,7 +191,7 @@ static int irdft_horizontal8(AVFilterContext *ctx, void *arg, int jobnr, int nb_ · 190 unmodified lines | ||
| 191 | 191 | uint8_t *dst = out->data[plane] + i * out->linesize[plane]; |
| 192 | 192 | |
| 193 | 193 | for (int j = 0; j < w; j++) |
| 194 | − dst[j] = av_clip(lrintf(src[j] * scale), 0, 255); | |
| 194 | + dst[j] = av_clip_uint8(lrintf(src[j] * scale)); | |
| 195 | 195 | } |
| 196 | 196 | } |
| 197 | 197 | |