ref: a08c5cef555dfe53a5b8c92787b23ea59e012486
parent: 152d57de5ca7b3ea45896330c07c627be3d0b654
author: Jean-Marc Valin <jmvalin@amazon.com>
date: Mon Jun 19 14:10:57 EDT 2023
Always use at least one DRED feature vector
--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -664,7 +664,7 @@
int features_per_frame;
int needed_feature_frames;
lpcnet_plc_fec_clear(&st->lpcnet);
- features_per_frame = frame_size/(st->Fs/100);
+ features_per_frame = IMAX(1, frame_size/(st->Fs/100));
needed_feature_frames = features_per_frame;
/* if blend==0, the last PLC call was "update" and we need to feed two extra 10-ms frames. */
if (st->lpcnet.blend == 0) needed_feature_frames+=2;
--
⑨