shithub: opus

Download patch

ref: 71e10e2ef98b56b99bb2d95efd7c0b777e123fb4
parent: e7a2a03170c7b30dd5f8ee48d8cdaccb23a9f7bf
author: Koen Vos <[email protected]>
date: Mon Feb 14 16:49:42 EST 2011

CELT/Hybrid fix for in-band FEC.

--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -200,7 +200,7 @@
 	    celt_decoder_ctl(st->celt_dec, CELT_SET_CHANNELS(st->stream_channels));
 
         /* Decode CELT */
-        celt_ret = celt_decode_with_ec(st->celt_dec, data, len, pcm_celt, frame_size, &dec);
+        celt_ret = celt_decode_with_ec(st->celt_dec, decode_fec?NULL:data, len, pcm_celt, frame_size, &dec);
         for (i=0;i<frame_size*st->channels;i++)
             pcm[i] = ADD_SAT16(pcm[i], pcm_celt[i]);
     }