shithub: opus

Download patch

ref: 0f6b2023122048489c97cc2f8d7313659be9eca2
parent: cbb9f535c2e702681f884a95987ff3cfafb3b08e
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Tue Jun 20 10:08:24 EDT 2023

Fix segfault

--- a/celt/celt_decoder.c
+++ b/celt/celt_decoder.c
@@ -1111,7 +1111,7 @@
 #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
 
--