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
path: root/src
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@amazon.com>2022-12-13 11:05:18 +0300
committerJean-Marc Valin <jmvalin@amazon.com>2023-06-16 20:01:24 +0300
commit37a4e2e3d0743b3c8eca2a23e4c45e23b4d56f73 (patch)
tree96af87f5fa0e9ff922b9bb6cf8674e0ebe9205aa /src
parent9a3f87391a537baaa29c8ba22f41e5488cfe9a1c (diff)
Fix the normal PLC case
Diffstat (limited to 'src')
-rw-r--r--src/opus_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opus_decoder.c b/src/opus_decoder.c
index 7f61292a..70364e22 100644
--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -653,7 +653,7 @@ int opus_decode_native(OpusDecoder *st, const unsigned char *data,
/* For FEC/PLC, frame_size has to be to have a multiple of 2.5 ms */
if ((decode_fec || len==0 || data==NULL) && frame_size%(st->Fs/400)!=0)
return OPUS_BAD_ARG;
- if (decode_fec > 0) {
+ if (decode_fec > 0 && silk_dec->sPLC.nb_fec_frames > 0) {
int features_per_frame;
int needed_feature_frames;
features_per_frame = frame_size/(st->Fs/100);