The implementation of this method did not follow the description in the method comment. It was supposed to delete all packets in a range [A, B], but if at least one packet in the buffer had a timestamp lower than A, then no packets at all were discarded. This is now fixed. BUG=webrtc:7937 Review-Url: https://codereview.webrtc.org/2969123003 Cr-Commit-Position: refs/heads/master@{#18903}