Add adaptation of FEC to bandwidth, loss rate and overhead. The FEC is disabled at start. Detect lost packets and inject them after repair in jitter buffer. Manage the connection between received packets to identify which repair packets protects which source packets. Clean old packets that have been received. Add stats for FEC. Fix memory leaks. Clean code.