shithub: opus

Download patch

ref: 901c8548af2b3606207f8c41bf08946659c06720
parent: dd0e2dc3391ae20a1c05c91a5ee5d4179e27062f
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Wed Feb 14 06:51:44 EST 2024

Conditional include

Thanks to Igor Palaguta for reporting the issue.
https://github.com/xiph/opus/issues/313

--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -45,7 +45,11 @@
 #include "analysis.h"
 #include "mathops.h"
 #include "tuning_parameters.h"
+
+#ifdef ENABLE_DRED
 #include "silk/dred_coding.h"
+#endif
+
 #ifdef FIXED_POINT
 #include "fixed/structs_FIX.h"
 #else
--