1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_vectorscope: use av_clip_uint8()

Fixes fate-source

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2019-12-28 22:38:52 -03:00
parent 6399eed48a
commit eb17a7906b

View File

@ -781,8 +781,8 @@ static void vectorscope8(VectorscopeContext *s, AVFrame *in, AVFrame *out, int p
for (j = 0; j < out->width; j++) {
const int pos = i * dlinesize + j;
if (dpd[pos]) {
dpx[pos] = av_clip(dpd[pos] + dpd[pos] * s->ftint[0], 0, 255);
dpy[pos] = av_clip(dpd[pos] + dpd[pos] * s->ftint[1], 0, 255);
dpx[pos] = av_clip_uint8(dpd[pos] + dpd[pos] * s->ftint[0]);
dpy[pos] = av_clip_uint8(dpd[pos] + dpd[pos] * s->ftint[1]);
}
}
}