If the receiver has indicated that a packet has been received, via a TransportFeedback RTCP message, it is safe to remove it from the RtpPacketHistory as we can be sure it won't be needed anymore. This will reduce memory usage, reduce the risk of overflow in the history at very high bitrates, and hopefully make payload based padding a little more useful. This is code stems partly from https://webrtc-review.googlesource.com/c/src/+/134208 but without the RtpPacketHistory changes which were landed in https://webrtc-review.googlesource.com/c/src/+/134307 Bug: webrtc:8975 Change-Id: Iea9d3d32bee5512473744e9ef3a18018567fc272 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/135160 Commit-Queue: Erik Språng <sprang@webrtc.org> Reviewed-by: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27868}