mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Fix for MV candidate derivation
This commit is contained in:
parent
cda60897e1
commit
f85e0e4ad6
|
@ -363,6 +363,9 @@ void inter_get_mv_cand(encoder_control *encoder, int32_t x_cu, int32_t y_cu, int
|
|||
}
|
||||
candidates += b_candidates;
|
||||
|
||||
// When a1 or a0 is available, we dont check for secondary B candidates
|
||||
if((a1 && a1->type == CU_INTER) || (a0 && a0->type == CU_INTER)) b_candidates = 1;
|
||||
|
||||
if(!b_candidates) {
|
||||
// Top predictors
|
||||
if (b0 && b0->type == CU_INTER) {
|
||||
|
|
Loading…
Reference in a new issue