[FFmpeg-cvslog] avfilter/vf_vectorscope: use av_clip_uint8()
James Almer
git at videolan.org
Sun Dec 29 03:39:46 EET 2019
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Dec 28 22:38:52 2019 -0300| [eb17a7906bb2ca000c0b8519092a3fac97647225] | committer: James Almer
avfilter/vf_vectorscope: use av_clip_uint8()
Fixes fate-source
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb17a7906bb2ca000c0b8519092a3fac97647225
---
libavfilter/vf_vectorscope.c | 4 ++--
1 file 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]);
}
}
}
More information about the ffmpeg-cvslog
mailing list