From: Diego Biurrun Date: Mon, 11 Jan 2016 14:36:12 +0000 (+0100) Subject: hevc: Eliminate pointless variable indirection X-Git-Tag: android-x86-7.1-r1~252^2~194 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e4382a4ab48138d43a19ea0da96f536a5e49b50c;p=android-x86%2Fexternal-ffmpeg.git hevc: Eliminate pointless variable indirection --- diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 5f1b5c3c4a..9dd86c289e 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -1167,9 +1167,7 @@ static void hls_residual_coding(HEVCContext *s, int x0, int y0, trans_coeff_level = 1 + coeff_abs_level_greater1_flag[n]; if (trans_coeff_level == ((m < 8) ? ((n == first_greater1_coeff_idx) ? 3 : 2) : 1)) { - int last_coeff_abs_level_remaining = ff_hevc_coeff_abs_level_remaining(s, trans_coeff_level, c_rice_param); - - trans_coeff_level += last_coeff_abs_level_remaining; + trans_coeff_level += ff_hevc_coeff_abs_level_remaining(s, trans_coeff_level, c_rice_param); if ((trans_coeff_level) > (3 * (1 << c_rice_param))) c_rice_param = FFMIN(c_rice_param + 1, 4); }