diff options
author | James Almer <jamrial@gmail.com> | 2019-12-28 22:38:52 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-12-28 22:38:58 -0300 |
commit | eb17a7906bb2ca000c0b8519092a3fac97647225 (patch) | |
tree | 898cc61fc86763cb1b4a0c49d83022da24707ca1 /libavfilter/vf_vectorscope.c | |
parent | 6399eed48a8dde7b2db6d7bf4207737e1a711aa4 (diff) | |
download | ffmpeg-eb17a7906bb2ca000c0b8519092a3fac97647225.tar.gz |
avfilter/vf_vectorscope: use av_clip_uint8()
Fixes fate-source
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/vf_vectorscope.c')
-rw-r--r-- | libavfilter/vf_vectorscope.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_vectorscope.c b/libavfilter/vf_vectorscope.c index e25214355e..37e36b9eef 100644 --- a/libavfilter/vf_vectorscope.c +++ b/libavfilter/vf_vectorscope.c @@ -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]); } } } |