From 4f4228bd0ada175ea459d5d0b52face5900d9d94 Mon Sep 17 00:00:00 2001 From: Mahyar Koshkouei Date: Sat, 11 Mar 2017 16:10:01 +0000 Subject: [PATCH] Fix Opus not decoding at correct rate Fixed an issue whereby Opus files would decode at the original sampling rate rather than the sampling rate of the Opus file itself which should always be 48000. [Opus Custom](https://wiki.xiph.org/OpusFAQ#What_is_Opus_Custom.3F) is not supported. Signed-off-by: Mahyar Koshkouei --- source/opus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/opus.c b/source/opus.c index 2285f9d..d526719 100644 --- a/source/opus.c +++ b/source/opus.c @@ -53,7 +53,7 @@ out: */ uint32_t rateOpus(void) { - return opusHead->input_sample_rate; + return 48000; } /**