av1dec: Fix RefFrameSignBias calculation

(cherry picked from commit ba6b08c75b)
release/7.0
Mark Thompson 9 months ago committed by Lynne
parent 506fbe681c
commit 9963b9e3c9
  1. 9
      libavcodec/av1dec.c

@ -372,8 +372,13 @@ static void order_hint_info(AV1DecContext *s)
int ref_order_hint = s->ref[ref_slot].order_hint;
frame->order_hints[ref_name] = ref_order_hint;
frame->ref_frame_sign_bias[ref_name] =
get_relative_dist(seq, ref_order_hint, frame->order_hint);
if (!seq->enable_order_hint) {
frame->ref_frame_sign_bias[ref_name] = 0;
} else {
frame->ref_frame_sign_bias[ref_name] =
get_relative_dist(seq, ref_order_hint,
frame->order_hint) > 0;
}
}
}

Loading…
Cancel
Save