summaryrefslogtreecommitdiff
path: root/libavcodec/hevc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-17 12:12:55 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-17 12:13:09 +0100
commit91a9ae5b6bbfba611393eca1694417e6329f9bf3 (patch)
tree143fdad22f62f06a694345b27f1f6edd38a3a1aa /libavcodec/hevc.c
parent0d5af820f7be073963f270e4387938f199e1facf (diff)
parenteac3ac1fe0774b65316852616b2672702dbc3f31 (diff)
Merge commit 'eac3ac1fe0774b65316852616b2672702dbc3f31'
* commit 'eac3ac1fe0774b65316852616b2672702dbc3f31': hevc: eliminate an unneeded intermediate variable Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index ead180269d..dda54e8f91 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -1599,7 +1599,6 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
int min_cb_width = s->sps->min_cb_width;
int x_cb = x0 >> log2_min_cb_size;
int y_cb = y0 >> log2_min_cb_size;
- int ref_idx[2];
int x_pu, y_pu;
int i, j;
@@ -1627,8 +1626,7 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
if (inter_pred_idc != PRED_L1) {
if (s->sh.nb_refs[L0]) {
- ref_idx[0] = ff_hevc_ref_idx_lx_decode(s, s->sh.nb_refs[L0]);
- current_mv.ref_idx[0] = ref_idx[0];
+ current_mv.ref_idx[0]= ff_hevc_ref_idx_lx_decode(s, s->sh.nb_refs[L0]);
}
current_mv.pred_flag = PF_L0;
ff_hevc_hls_mvd_coding(s, x0, y0, 0);
@@ -1642,8 +1640,7 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
if (inter_pred_idc != PRED_L0) {
if (s->sh.nb_refs[L1]) {
- ref_idx[1] = ff_hevc_ref_idx_lx_decode(s, s->sh.nb_refs[L1]);
- current_mv.ref_idx[1] = ref_idx[1];
+ current_mv.ref_idx[1]= ff_hevc_ref_idx_lx_decode(s, s->sh.nb_refs[L1]);
}
if (s->sh.mvd_l1_zero_flag == 1 && inter_pred_idc == PRED_BI) {