Only count smp extra cbf bits when rd < 2

This commit is contained in:
Joose Sainio 2022-02-02 10:11:40 +02:00
parent 3ac17ffd95
commit 8cd81e3dcf

View file

@ -2351,7 +2351,9 @@ void kvz_search_cu_smp(encoder_state_t * const state,
// The transform is split for SMP and AMP blocks so we need more bits for // The transform is split for SMP and AMP blocks so we need more bits for
// coding the CBF. // coding the CBF.
smp_extra_bits += 6; if(state->encoder_control->cfg.rdo < 2) {
smp_extra_bits += 6;
}
*inter_bitcost += smp_extra_bits; *inter_bitcost += smp_extra_bits;