shithub: opus

Download patch

ref: 16f15924f81a147b0799de51c4431035192f50f4
parent: a355d74efb9aa0b490e0b39fd587a1f996069392
author: Jean-Marc Valin <[email protected]>
date: Mon Oct 10 17:29:20 EDT 2011

Fixes a corruption when decoding FEC frames

--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -321,7 +321,7 @@
     }
 
     start_band = 0;
-    if (mode != MODE_CELT_ONLY && data != NULL && ec_tell(&dec)+17+20*(st->mode == MODE_HYBRID) < 8*len)
+    if (!decode_fec && mode != MODE_CELT_ONLY && data != NULL && ec_tell(&dec)+17+20*(st->mode == MODE_HYBRID) < 8*len)
     {
         /* Check if we have a redundant 0-8 kHz band */
         if (mode == MODE_HYBRID)