Commit 0fe50e56 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/pixlet: use av_clip_uintp2_c explicitly

Found-by: 's avatarClément Bœsch <u@pkh.me>
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent a340987e
...@@ -482,8 +482,8 @@ static void postprocess_chroma(AVFrame *frame, int w, int h, int depth) ...@@ -482,8 +482,8 @@ static void postprocess_chroma(AVFrame *frame, int w, int h, int depth)
for (j = 0; j < h; j++) { for (j = 0; j < h; j++) {
for (i = 0; i < w; i++) { for (i = 0; i < w; i++) {
dstu[i] = av_clip_uintp2(add + srcu[i], depth) << shift; dstu[i] = av_clip_uintp2_c(add + srcu[i], depth) << shift;
dstv[i] = av_clip_uintp2(add + srcv[i], depth) << shift; dstv[i] = av_clip_uintp2_c(add + srcv[i], depth) << shift;
} }
dstu += strideu; dstu += strideu;
dstv += stridev; dstv += stridev;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment