Displaying 1 result from an estimated 1 matches for "packet_lost".
Did you mean:
packet_host
2019 Jul 15
0
How to enable OPUS inband FEC
...cbr=1;useinbandfec=1;usedtx=1)
opus: encode bw=narrow bitrate=24000 fch=auto vbr=0 fec=1 expected loss=30 dtx=1 complex=10
At the decoder side when a packet is lost I call the decoder with the next params:
opus_decode(ads->dec, NULL, 0, sampv, (int)(*sampc/ads->ch), 0);
and set the flag packet_lost=true;
When I receive the next packet, I'm trying to decode the packet with decode_fec = 1 and then the same packet with decode_fec = 0:
In the code below, suggest to replace ‘ads->ch’ with ‘numChannels’ to make it more clear to what you refer to.)
if(packet_lost ) {
if(opus_packet_has_...