Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@amazon.com>2023-05-19 23:54:13 +0300
committerJean-Marc Valin <jmvalin@amazon.com>2023-05-19 23:54:13 +0300
commitc3a0a52c9b1413216541087e300ea7ae533731ec (patch)
treefad1a4897281cb0939a12d61e3b54fca4a9233e3
parent8015e764c402303f4afbeb0c53fdb48d05af5c73 (diff)
Oops, fixed build with DRED disabled
-rw-r--r--src/opus_decoder.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/opus_decoder.c b/src/opus_decoder.c
index bf2f38ed..46703714 100644
--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -1094,7 +1094,7 @@ struct OpusDREDDecoder {
opus_uint32 magic;
};
-#if defined(ENABLE_HARDENING) || defined(ENABLE_ASSERTIONS)
+#if defined(ENABLE_NEURAL_FEC) && (defined(ENABLE_HARDENING) || defined(ENABLE_ASSERTIONS))
static void validate_dred_decoder(OpusDREDDecoder *st)
{
celt_assert(st->magic == 0xD8EDDEC0);
@@ -1229,6 +1229,7 @@ int opus_dred_parse(OpusDREDDecoder *dred_dec, OpusDRED *dred, const unsigned ch
}
return 0;
#else
+ (void)dred_dec;
(void)dred;
(void)data;
(void)len;
@@ -1253,7 +1254,9 @@ int opus_dred_process(OpusDREDDecoder *dred_dec, const OpusDRED *src, OpusDRED *
dst->process_stage = 2;
return OPUS_OK;
#else
- (void)dred;
+ (void)dred_dec;
+ (void)src;
+ (void)dst;
return OPUS_UNIMPLEMENTED;
#endif
}