Skip to content
Snippets Groups Projects
Verified Commit 37a4e2e3 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Fix the normal PLC case

parent 9a3f8739
No related branches found
No related tags found
No related merge requests found
...@@ -653,7 +653,7 @@ int opus_decode_native(OpusDecoder *st, const unsigned char *data, ...@@ -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 */ /* 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) if ((decode_fec || len==0 || data==NULL) && frame_size%(st->Fs/400)!=0)
return OPUS_BAD_ARG; return OPUS_BAD_ARG;
if (decode_fec > 0) { if (decode_fec > 0 && silk_dec->sPLC.nb_fec_frames > 0) {
int features_per_frame; int features_per_frame;
int needed_feature_frames; int needed_feature_frames;
features_per_frame = frame_size/(st->Fs/100); features_per_frame = frame_size/(st->Fs/100);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment