diff --git a/libavcodec/pixlet.c b/libavcodec/pixlet.c
index e9c383a482560f829a16cd7b29d36ffe9aadaa87..bb7f94c65f24533b9ebb87274d983e15d9717f35 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;