summaryrefslogtreecommitdiff
path: root/silk/enc_API.c
diff options
context:
space:
mode:
Diffstat (limited to 'silk/enc_API.c')
-rw-r--r--silk/enc_API.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/silk/enc_API.c b/silk/enc_API.c
index ececbdca..05ce9cb8 100644
--- a/silk/enc_API.c
+++ b/silk/enc_API.c
@@ -41,7 +41,9 @@ POSSIBILITY OF SUCH DAMAGE.
#include "main_FLP.h"
#endif
+#ifdef ENABLE_NEURAL_FEC
#include "dred_encoder.h"
+#endif
/***************************************/
/* Read control structure from encoder */
@@ -466,8 +468,10 @@ opus_int silk_Encode( /* O Returns error co
}
silk_encode_do_VAD_Fxx( &psEnc->state_Fxx[ 0 ], activity );
+#ifdef ENABLE_NEURAL_FEC
/* DRED Encoder */
dred_encode_silk_frame( &psEnc->state_Fxx[ 0 ].sCmn.dred_encoder, &psEnc->state_Fxx[ 0 ].sCmn.inputBuf[0] );
+#endif
/* Encode */
for( n = 0; n < encControl->nChannelsInternal; n++ ) {