summaryrefslogtreecommitdiff
path: root/libavfilter/vf_hue.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-12-20 19:11:35 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-12-20 19:13:42 +0100
commit028d8dd367f79b82a5ad1d4b5d2bd2cb06ee0664 (patch)
tree5c670ab6d49ec6846cfdb74f359fb7d23adde6ec /libavfilter/vf_hue.c
parent70e74e007270c43c161dad7495fc3c745d2fb08a (diff)
lavfi/hue: use av_clip_uint8() instead of av_clip_uint8_c()
The generic version should be faster if optimized.
Diffstat (limited to 'libavfilter/vf_hue.c')
-rw-r--r--libavfilter/vf_hue.c4
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);
}
}
}