Re-enabling post-filter on 2.5 ms frames
Also, now forcing MS stereo for 2.5 frames because the current analysis isn't reliable.
This commit is contained in:
parent
428a77d6bd
commit
cd84e3d0f4
1 changed files with 6 additions and 2 deletions
|
@ -822,7 +822,7 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i
|
|||
} while (++c<C);
|
||||
|
||||
#ifdef ENABLE_POSTFILTER
|
||||
if (LM != 0 && nbAvailableBytes>10*C)
|
||||
if (nbAvailableBytes>12*C)
|
||||
{
|
||||
VARDECL(celt_word16, pitch_buf);
|
||||
ALLOC(pitch_buf, (COMBFILTER_MAXPERIOD+N)>>1, celt_word16);
|
||||
|
@ -1084,6 +1084,10 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i
|
|||
|
||||
if (C==2)
|
||||
{
|
||||
/* Always use MS for 2.5 ms frames until we can do a better analysis */
|
||||
if (LM==0)
|
||||
dual_stereo = 0;
|
||||
else
|
||||
dual_stereo = stereo_analysis(st->mode, X, st->mode->nbEBands, LM, C, N);
|
||||
ec_enc_bit_prob(enc, dual_stereo, 32768);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue