Cleaning up intra_decision()
This commit is contained in:
parent
ca6533cd88
commit
617af25e5c
3 changed files with 11 additions and 9 deletions
|
@ -883,7 +883,7 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, c
|
|||
|
||||
/* Don't use intra energy when we're operating at low bit-rate */
|
||||
intra_ener = st->force_intra || (!has_pitch && st->delayedIntra && nbAvailableBytes > st->end);
|
||||
if (shortBlocks || intra_decision(bandLogE, st->oldBandE, effEnd))
|
||||
if (shortBlocks || intra_decision(bandLogE, st->oldBandE, st->start, effEnd, st->mode->nbEBands, C))
|
||||
st->delayedIntra = 1;
|
||||
else
|
||||
st->delayedIntra = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue