Skip to content
Snippets Groups Projects
Commit 92a06f51 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Disables temporal VBR for LFE

parent 337f34cf
No related branches found
No related tags found
No related merge requests found
...@@ -1551,6 +1551,8 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm, ...@@ -1551,6 +1551,8 @@ int celt_encode_with_ec(CELTEncoder * OPUS_RESTRICT st, const opus_val16 * pcm,
surround_masking = DIV32_16(mask_avg,C*st->end) + QCONST16(.0f, DB_SHIFT); surround_masking = DIV32_16(mask_avg,C*st->end) + QCONST16(.0f, DB_SHIFT);
surround_masking = MIN16(MAX16(surround_masking,-QCONST16(1.5f, DB_SHIFT)), 0); surround_masking = MIN16(MAX16(surround_masking,-QCONST16(1.5f, DB_SHIFT)), 0);
} }
/* Temporal VBR (but not for LFE) */
if (!st->lfe)
{ {
opus_val16 follow=-QCONST16(10.0f,DB_SHIFT); opus_val16 follow=-QCONST16(10.0f,DB_SHIFT);
float frame_avg=0; float frame_avg=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment