This is a reland of 5cc99570620890edc3989b2cae1d1ee0669a021c Original change's description: > Batch assign RTP seq# for all packets of a frame. > > This avoids a potential race where other call sites could assign > sequence numbers while the video frame is mid packetization - resulting > in a non-contiguous video sequence. > > Avoiding the tight lock-unlock within the loop also couldn't hurt from > a performance standpoint. > > Bug: webrtc:12448 > Change-Id: I6cc31c7743d2ca75caeaeffb98651a480dbe08e2 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/207867 > Commit-Queue: Erik Språng <sprang@webrtc.org> > Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#33291} Bug: webrtc:12448 Change-Id: I7c5a5e00a5e08330ff24b58af9f090c327eeeaa2 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208221 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33296}