diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-11-27 08:20:01 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-02-11 08:53:43 +0400 |
commit | f548a5a35d4e808eba5224084034c09421edcc6a (patch) | |
tree | d57e15666a159e4672bfed321c07db5b6eeab047 | |
parent | 854796481543539f2cda745861c0cd398a1a78de (diff) |
Makes variable framesize less aggressive at lower rates
-rw-r--r-- | src/opus_encoder.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opus_encoder.c b/src/opus_encoder.c index f57fa52e..c4a46557 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -590,6 +590,10 @@ static int transient_viterbi(const float *E, const float *E_1, int N, int frame_ float best_cost; int best_state; + /* Makes variable framesize less aggressive at lower bitrates, but I can't + find any valid theretical justification for this (other than it seems + to help) */ + frame_cost *= 720/rate; for (i=0;i<16;i++) { /* Impossible state */ |