History

avfilter/vf_vectorscope: use av_clip_uint8()

Fixes fate-source

James Almer committed 6 years ago

Commit eb17a791 parent 6399eed1 file · +2 −2Browse files

Unified · Split

libavfilter/vf_vectorscope.c+2−2
@@ -781,8 +781,8 @@ static void vectorscope8(VectorscopeContext *s, AVFrame *in, AVFrame *out, int p · 780 unmodified lines
781 for (j = 0; j < out->width; j++) {781 for (j = 0; j < out->width; j++) {
782 const int pos = i * dlinesize + j;782 const int pos = i * dlinesize + j;
783 if (dpd[pos]) {783 if (dpd[pos]) {
784 dpx[pos] = av_clip(dpd[pos] + dpd[pos] * s->ftint[0], 0, 255);784 dpx[pos] = av_clip_uint8(dpd[pos] + dpd[pos] * s->ftint[0]);
785 dpy[pos] = av_clip(dpd[pos] + dpd[pos] * s->ftint[1], 0, 255);785 dpy[pos] = av_clip_uint8(dpd[pos] + dpd[pos] * s->ftint[1]);
786 }786 }
787 }787 }
788 }788 }

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