summaryrefslogtreecommitdiff
path: root/libavcodec/hevc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-13 12:32:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-13 12:34:18 +0100
commit3e2714992b5023260ebfafd5d8f7d4cd0e2bdd80 (patch)
tree81b173c79aa35988f07637623c1bb9aa09463dac /libavcodec/hevc.c
parentc74b3983f99a2a177904bd0b997528c1185e1231 (diff)
parenteea769df322fac2601a96db195fa7dc8d12a8fbc (diff)
Merge commit 'eea769df322fac2601a96db195fa7dc8d12a8fbc'
* commit 'eea769df322fac2601a96db195fa7dc8d12a8fbc': hevc: Use generic av_clip function, not C implementation Conflicts: libavcodec/hevc.c libavcodec/hevc_filter.c libavcodec/hevc_mvs.c See: 83976e40e89655162e5394cf8915d9b6d89702d9 Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index e67827b599..e63088fae9 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -148,7 +148,7 @@ static void pred_weight_table(HEVCContext *s, GetBitContext *gb)
luma_log2_weight_denom = get_ue_golomb_long(gb);
if (luma_log2_weight_denom < 0 || luma_log2_weight_denom > 7)
av_log(s->avctx, AV_LOG_ERROR, "luma_log2_weight_denom %d is invalid\n", luma_log2_weight_denom);
- s->sh.luma_log2_weight_denom = av_clip_c(luma_log2_weight_denom, 0, 7);
+ s->sh.luma_log2_weight_denom = av_clip(luma_log2_weight_denom, 0, 7);
if (s->sps->chroma_format_idc != 0) {
int delta = get_se_golomb(gb);
s->sh.chroma_log2_weight_denom = av_clip(s->sh.luma_log2_weight_denom + delta, 0, 7);