From eea769df322fac2601a96db195fa7dc8d12a8fbc Mon Sep 17 00:00:00 2001 From: Peter Meerwald Date: Mon, 9 Feb 2015 10:44:24 +0100 Subject: hevc: Use generic av_clip function, not C implementation hevc seems to be the only place where the C implementation of the av_clip function is explicitly selected, precluding platform-specific optimizations Signed-off-by: Peter Meerwald Signed-off-by: Anton Khirnov --- libavcodec/hevc_cabac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/hevc_cabac.c') diff --git a/libavcodec/hevc_cabac.c b/libavcodec/hevc_cabac.c index 276cd339a3..efcaa860c7 100644 --- a/libavcodec/hevc_cabac.c +++ b/libavcodec/hevc_cabac.c @@ -365,7 +365,7 @@ static void cabac_init_state(HEVCContext *s) int init_value = init_values[init_type][i]; int m = (init_value >> 4) * 5 - 45; int n = ((init_value & 15) << 3) - 16; - int pre = 2 * (((m * av_clip_c(s->sh.slice_qp, 0, 51)) >> 4) + n) - 127; + int pre = 2 * (((m * av_clip(s->sh.slice_qp, 0, 51)) >> 4) + n) - 127; pre ^= pre >> 31; if (pre > 124) -- cgit v1.2.3