mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00:00
av1dec: Fix RefFrameSignBias calculation
This commit is contained in:
parent
3032a74cac
commit
ba6b08c75b
@ -373,8 +373,13 @@ static void order_hint_info(AV1DecContext *s)
|
|||||||
int ref_order_hint = s->ref[ref_slot].order_hint;
|
int ref_order_hint = s->ref[ref_slot].order_hint;
|
||||||
|
|
||||||
frame->order_hints[ref_name] = ref_order_hint;
|
frame->order_hints[ref_name] = ref_order_hint;
|
||||||
frame->ref_frame_sign_bias[ref_name] =
|
if (!seq->enable_order_hint) {
|
||||||
get_relative_dist(seq, ref_order_hint, frame->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…
Reference in New Issue
Block a user