aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy B. Terriberry <tterribe@xiph.org>2024-02-22 04:55:29 -0800
committerTimothy B. Terriberry <tterribe@xiph.org>2024-02-22 04:55:29 -0800
commit950d8bf15893166fdd99ad0e85a4d1767cbb6b95 (patch)
tree626d711dee01a9faa90ee905b510c71dfde0b1fe
parent9cf12e92bbd25b2416b340b06090efbde9ad3fa6 (diff)
downloadlibopus-950d8bf15893166fdd99ad0e85a4d1767cbb6b95.tar.gz
Remove some dead code.
-rw-r--r--silk/dred_coding.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/silk/dred_coding.c b/silk/dred_coding.c
index 66360454..d702fa32 100644
--- a/silk/dred_coding.c
+++ b/silk/dred_coding.c
@@ -39,8 +39,6 @@
int compute_quantizer(int q0, int dQ, int i) {
int quant;
static const int dQ_table[8] = {0, 2, 3, 4, 6, 8, 12, 16};
- quant = 0;
quant = q0 + (dQ_table[dQ]*i + 8)/16;
return quant > 15 ? 15 : quant;
- return (int) floor(0.5f + DRED_ENC_Q0 + 1.f * (DRED_ENC_Q1 - DRED_ENC_Q0) * i / (DRED_NUM_REDUNDANCY_FRAMES - 2));
}