diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-01-11 15:36:12 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-11-30 14:11:44 +0100 |
commit | e4382a4ab48138d43a19ea0da96f536a5e49b50c (patch) | |
tree | de4343111fcfe5d4950f52a7d8e8f26207b59d07 /libavcodec | |
parent | 5c89022542ce8521d89ef58858342a7bc1c3cd0d (diff) | |
download | ffmpeg-e4382a4ab48138d43a19ea0da96f536a5e49b50c.tar.gz |
hevc: Eliminate pointless variable indirection
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/hevcdec.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); } |