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-06-20 21:08:24 +0300
committerJean-Marc Valin <jmvalin@amazon.com>2023-06-20 21:08:24 +0300
commit0f6b2023122048489c97cc2f8d7313659be9eca2 (patch)
tree417729d6600804ccc1f56f86909450b2af08a3eb
parentcbb9f535c2e702681f884a95987ff3cfafb3b08e (diff)
Fix segfault
-rw-r--r--celt/celt_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/celt_decoder.c b/celt/celt_decoder.c
index 197c9452..7ab58cf0 100644
--- a/celt/celt_decoder.c
+++ b/celt/celt_decoder.c
@@ -1111,7 +1111,7 @@ int celt_decode_with_ec_dred(CELTDecoder * OPUS_RESTRICT st, const unsigned char
#ifdef ENABLE_NEURAL_FEC
else {
/* FIXME: This is a bit of a hack just to make sure opus_decode_native() knows we're no longer in PLC. */
- lpcnet->blend = 0;
+ if (lpcnet) lpcnet->blend = 0;
}
#endif