Fix for MV candidate derivation

This commit is contained in:
Marko Viitanen 2014-02-17 17:39:40 +02:00
parent cda60897e1
commit f85e0e4ad6

View file

@ -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) {