diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-01-19 13:32:21 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-01-19 13:32:21 +0100 |
commit | 0fe50e56e9ca74f9d992b50ee512eadc428410d7 (patch) | |
tree | 0e695eb5970b4dfc958676abc8ce2574ffeda47e | |
parent | a340987e37f90af52f92b3a9c5124e98087a5806 (diff) | |
download | ffmpeg-0fe50e56e9ca74f9d992b50ee512eadc428410d7.tar.gz |
avcodec/pixlet: use av_clip_uintp2_c explicitly
Found-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/pixlet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/pixlet.c b/libavcodec/pixlet.c index e9c383a482..bb7f94c65f 100644 --- a/libavcodec/pixlet.c +++ b/libavcodec/pixlet.c @@ -482,8 +482,8 @@ static void postprocess_chroma(AVFrame *frame, int w, int h, int depth) for (j = 0; j < h; j++) { for (i = 0; i < w; i++) { - dstu[i] = av_clip_uintp2(add + srcu[i], depth) << shift; - dstv[i] = av_clip_uintp2(add + srcv[i], depth) << shift; + dstu[i] = av_clip_uintp2_c(add + srcu[i], depth) << shift; + dstv[i] = av_clip_uintp2_c(add + srcv[i], depth) << shift; } dstu += strideu; dstv += stridev; |