Browse Source

avfilter/vf_vectorscope: use av_clip_uint8()

Fixes fate-source

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.3
James Almer 6 years ago
parent
commit
eb17a7906b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/vf_vectorscope.c

+ 2
- 2
libavfilter/vf_vectorscope.c 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]);
}
}
}


Loading…
Cancel
Save