diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-12-20 19:11:35 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-12-20 19:13:42 +0100 |
commit | 028d8dd367f79b82a5ad1d4b5d2bd2cb06ee0664 (patch) | |
tree | 5c670ab6d49ec6846cfdb74f359fb7d23adde6ec | |
parent | 70e74e007270c43c161dad7495fc3c745d2fb08a (diff) | |
download | ffmpeg-028d8dd367f79b82a5ad1d4b5d2bd2cb06ee0664.tar.gz |
lavfi/hue: use av_clip_uint8() instead of av_clip_uint8_c()
The generic version should be faster if optimized.
-rw-r--r-- | libavfilter/vf_hue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_hue.c b/libavfilter/vf_hue.c index e54a13b250..ec8faafd36 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); } } } |