-
- Downloads
ffmpeg: reload packet loss for each libopus encode
The libopus codec only reads and impelemnts options from the AVCodecContext at initialization. This means that packet loss estimation can not be dynamically set. This patch corrects this by reloading the packet loss estimation before each encode. This ensures that each opus packet is encoded with FEC data corresponding to the last packet loss estimation. This patch does not check the previous packet loss estimation, as it would increase software complexity, with one call of opus_multistream_encoder_ctl() at best when packet loss is unchanged, and two calls at most (one to get value, one to set value). Issue: #5157 Change-Id: I3fce82d8b310a5751dc7fbc9a1b766d43c41c304
Please register or sign in to comment