History

avfilter/vf_fftfilt: Use av_clip_uint8

The refactoring in 844890b1bc86316a38bc9e1dbf8ba0dd254307e3 caused fate-source to point out that this could be av_clip_uintp2 (or rather av_clip_uint8).

Martin Storsjö committed 5 years ago

Commit bb10f8d1 parent c336c7a1 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_fftfilt.c+1−1
@@ -191,7 +191,7 @@ static int irdft_horizontal8(AVFilterContext *ctx, void *arg, int jobnr, int nb_ · 190 unmodified lines
191 uint8_t *dst = out->data[plane] + i * out->linesize[plane];191 uint8_t *dst = out->data[plane] + i * out->linesize[plane];
192 192
193 for (int j = 0; j < w; j++)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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t