Commit 91a9ae5b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'eac3ac1f'

* commit 'eac3ac1f':
  hevc: eliminate an unneeded intermediate variable
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 0d5af820 eac3ac1f
...@@ -1599,7 +1599,6 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0, ...@@ -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 min_cb_width = s->sps->min_cb_width;
int x_cb = x0 >> log2_min_cb_size; int x_cb = x0 >> log2_min_cb_size;
int y_cb = y0 >> log2_min_cb_size; int y_cb = y0 >> log2_min_cb_size;
int ref_idx[2];
int x_pu, y_pu; int x_pu, y_pu;
int i, j; int i, j;
...@@ -1627,8 +1626,7 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0, ...@@ -1627,8 +1626,7 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
if (inter_pred_idc != PRED_L1) { if (inter_pred_idc != PRED_L1) {
if (s->sh.nb_refs[L0]) { 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]= ff_hevc_ref_idx_lx_decode(s, s->sh.nb_refs[L0]);
current_mv.ref_idx[0] = ref_idx[0];
} }
current_mv.pred_flag = PF_L0; current_mv.pred_flag = PF_L0;
ff_hevc_hls_mvd_coding(s, x0, y0, 0); ff_hevc_hls_mvd_coding(s, x0, y0, 0);
...@@ -1642,8 +1640,7 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0, ...@@ -1642,8 +1640,7 @@ static void hls_prediction_unit(HEVCContext *s, int x0, int y0,
if (inter_pred_idc != PRED_L0) { if (inter_pred_idc != PRED_L0) {
if (s->sh.nb_refs[L1]) { 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]= ff_hevc_ref_idx_lx_decode(s, s->sh.nb_refs[L1]);
current_mv.ref_idx[1] = ref_idx[1];
} }
if (s->sh.mvd_l1_zero_flag == 1 && inter_pred_idc == PRED_BI) { if (s->sh.mvd_l1_zero_flag == 1 && inter_pred_idc == PRED_BI) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment