[FFmpeg-cvslog] lavfi/hue: use av_clip_uint8() instead of av_clip_uint8_c()

Stefano Sabatini git at videolan.org
Fri Dec 20 19:26:40 CET 2013


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri Dec 20 19:11:35 2013 +0100| [028d8dd367f79b82a5ad1d4b5d2bd2cb06ee0664] | committer: Stefano Sabatini

lavfi/hue: use av_clip_uint8() instead of av_clip_uint8_c()

The generic version should be faster if optimized.

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

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

diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c
index e54a13b..ec8faaf 100644
--- a/libavfilter/vf_hue.c
+++ b/libavfilter/vf_hue.c
@@ -144,8 +144,8 @@ static inline void create_chrominance_lut(HueContext *h, const int32_t c,
             new_v = ((s * u) + (c * v) + (1 << 15) + (128 << 16)) >> 16;
 
             /* Prevent a potential overflow */
-            h->lut_u[i][j] = av_clip_uint8_c(new_u);
-            h->lut_v[i][j] = av_clip_uint8_c(new_v);
+            h->lut_u[i][j] = av_clip_uint8(new_u);
+            h->lut_v[i][j] = av_clip_uint8(new_v);
         }
     }
 }



More information about the ffmpeg-cvslog mailing list