|
|
@ -882,7 +882,7 @@ static int FUNC(skip_mode_params)(CodedBitstreamContext *ctx, RWContext *rw, |
|
|
|
forward_idx = -1; |
|
|
|
forward_idx = -1; |
|
|
|
backward_idx = -1; |
|
|
|
backward_idx = -1; |
|
|
|
for (i = 0; i < AV1_REFS_PER_FRAME; i++) { |
|
|
|
for (i = 0; i < AV1_REFS_PER_FRAME; i++) { |
|
|
|
ref_hint = priv->ref[i].order_hint; |
|
|
|
ref_hint = priv->ref[current->ref_frame_idx[i]].order_hint; |
|
|
|
dist = cbs_av1_get_relative_dist(seq, ref_hint, |
|
|
|
dist = cbs_av1_get_relative_dist(seq, ref_hint, |
|
|
|
current->order_hint); |
|
|
|
current->order_hint); |
|
|
|
if (dist < 0) { |
|
|
|
if (dist < 0) { |
|
|
@ -913,7 +913,7 @@ static int FUNC(skip_mode_params)(CodedBitstreamContext *ctx, RWContext *rw, |
|
|
|
|
|
|
|
|
|
|
|
second_forward_idx = -1; |
|
|
|
second_forward_idx = -1; |
|
|
|
for (i = 0; i < AV1_REFS_PER_FRAME; i++) { |
|
|
|
for (i = 0; i < AV1_REFS_PER_FRAME; i++) { |
|
|
|
ref_hint = priv->ref[i].order_hint; |
|
|
|
ref_hint = priv->ref[current->ref_frame_idx[i]].order_hint; |
|
|
|
if (cbs_av1_get_relative_dist(seq, ref_hint, |
|
|
|
if (cbs_av1_get_relative_dist(seq, ref_hint, |
|
|
|
forward_hint) < 0) { |
|
|
|
forward_hint) < 0) { |
|
|
|
if (second_forward_idx < 0 || |
|
|
|
if (second_forward_idx < 0 || |
|
|
|