Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid divide-by-zero in webrtc::StreamStatisticianImpl::BitrateReceived
https://bugs.webkit.org/show_bug.cgi?id=264718 <rdar://117912996> Reviewed by Youenn Fablet. Merge upstream 7dbf55437f109cb13d131d91ba645029686fa247 by Harald Alvestrand <hta@webrtc.org>. * Source/ThirdParty/libwebrtc/Source/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc: * Source/ThirdParty/libwebrtc/Source/webrtc/test/fuzzers/utils/rtp_replayer.cc: -- Ensure payload type frequency does not cause divide-by-zero This CL does 2 things: - Change the DCHECK for payload_type_frequency to a CHECK (so that this error will be a crash not a divide-by-zero) - Change the replay helper that was used by the fuzzer to set the frequency of the packets to the video value (90K). Bug: chromium:1466826 Change-Id: I39941f250b1782b36a3bcddfd347a016591466ec Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/312700 Commit-Queue: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40468} Canonical link: https://commits.webkit.org/270656@main
- Loading branch information