From 16f15924f81a147b0799de51c4431035192f50f4 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Mon, 10 Oct 2011 21:29:20 -0400 Subject: [PATCH] Fixes a corruption when decoding FEC frames --- src/opus_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opus_decoder.c b/src/opus_decoder.c index cd4079d5..6eb34920 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -321,7 +321,7 @@ static int opus_decode_frame(OpusDecoder *st, const unsigned char *data, } 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)