avfilter: use av_clip_uintp2_c where clip is variable

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
John Cox
2018-05-31 16:22:59 +02:00
committed by Paul B Mahol
parent 1616b1be5a
commit 8d4fc2ea06
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ static int amplify_frame(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs
} else {
amp = FFMIN(FFABS(diff * factor), hlimit);
}
dst[x] = av_clip_uintp2(src + amp, depth);
dst[x] = av_clip_uintp2_c(src + amp, depth);
} else {
dst[x] = src;
}