Default initialize RtpPayloadParams::chain_last_frame_id_

This ensures the chain calculation will start out with all chains reset.

Bug: b/194980850
Change-Id: I8a9edf8ecaee961cdbaa51968917a2d829045575
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/227281
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Emil Lundmark <lndmrk@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34598}
This commit is contained in:
Emil Lundmark 2021-07-30 09:45:10 +02:00 committed by WebRTC LUCI CQ
parent c3efa0031a
commit adfc700008

View file

@ -138,6 +138,7 @@ RtpPayloadParams::RtpPayloadParams(const uint32_t ssrc,
for (auto& spatial_layer : last_shared_frame_id_)
spatial_layer.fill(-1);
chain_last_frame_id_.fill(-1);
buffer_id_to_frame_id_.fill(-1);
Random random(rtc::TimeMicros());