summaryrefslogtreecommitdiff
path: root/libavcodec/hevc_cabac.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-20 00:33:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-20 00:33:29 +0200
commitacecd6b4d7fd7ca7e8a37e9c0aa4bc1868a5ae93 (patch)
treeb80d4172f5252bd13a9b0d736e66e1ce7c93d3b4 /libavcodec/hevc_cabac.c
parentb5d197a38b64548bcc2658cc58565fd41906bc54 (diff)
downloadffmpeg-acecd6b4d7fd7ca7e8a37e9c0aa4bc1868a5ae93.tar.gz
avcodec/hevc_cabac: trivial simplifications
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc_cabac.c')
-rw-r--r--libavcodec/hevc_cabac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc_cabac.c b/libavcodec/hevc_cabac.c
index a1edf58c41..b7d77d24a8 100644
--- a/libavcodec/hevc_cabac.c
+++ b/libavcodec/hevc_cabac.c
@@ -1340,13 +1340,13 @@ void ff_hevc_hls_residual_coding(HEVCContext *s, int x0, int y0,
int last_coeff_abs_level_remaining = coeff_abs_level_remaining_decode(s, trans_coeff_level, c_rice_param);
trans_coeff_level += last_coeff_abs_level_remaining;
- if ((trans_coeff_level) > (3 * (1 << c_rice_param)))
+ if (trans_coeff_level > (3 << c_rice_param))
c_rice_param = FFMIN(c_rice_param + 1, 4);
}
if (s->pps->sign_data_hiding_flag && sign_hidden) {
sum_abs += trans_coeff_level;
- if (n == first_nz_pos_in_cg && ((sum_abs&1) == 1))
+ if (n == first_nz_pos_in_cg && (sum_abs&1))
trans_coeff_level = -trans_coeff_level;
}
if (coeff_sign_flag >> 15)