av1dec: Fix RefFrameSignBias calculation

release/7.1
Mark Thompson 9 months ago
parent 3032a74cac
commit ba6b08c75b
  1. 9
      libavcodec/av1dec.c

@ -373,8 +373,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