ref: 5e46bb72ed2097047b4ebd5635d3e97435dffe0f
parent: 63409a06ff1688797cace4f6e3e68c1b70075c76
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Mon May 1 11:15:28 EDT 2017
Don't resample at 48 kHz
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -182,7 +182,7 @@
if (! (ret == OPUS_OK && st != NULL) ) {
goto fail;
}
- if (1||rate != 48000) {
+ if (rate != 48000) {
enc->re = speex_resampler_init(channels, rate, 48000, 5, NULL);
if (enc->re == NULL) goto fail;
speex_resampler_skip_zeros(enc->re);