[FFmpeg-cvslog] avcodec/pixlet: use av_clip_uintp2_c explicitly

Paul B Mahol git at videolan.org
Thu Jan 19 14:34:32 EET 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jan 19 13:32:21 2017 +0100| [0fe50e56e9ca74f9d992b50ee512eadc428410d7] | committer: Paul B Mahol

avcodec/pixlet: use av_clip_uintp2_c explicitly

Found-by: Clément Bœsch <u at pkh.me>
Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0fe50e56e9ca74f9d992b50ee512eadc428410d7
---

 libavcodec/pixlet.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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



More information about the ffmpeg-cvslog mailing list