Enables PeerConnectionFactory using external fec controller
Bug: webrtc:8799 Change-Id: Ieb2cf6163b9a83844ab9ed4822b4a7f1db4c24b8 Reviewed-on: https://webrtc-review.googlesource.com/43961 Commit-Queue: Ying Wang <yinwa@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22038}
This commit is contained in:
@ -145,11 +145,12 @@ void FecControllerDefault::SetProtectionMethod(bool enable_fec,
|
||||
loss_prot_logic_->SetMethod(method);
|
||||
}
|
||||
void FecControllerDefault::UpdateWithEncodedData(
|
||||
const EncodedImage& encoded_image) {
|
||||
const size_t encoded_length = encoded_image._length;
|
||||
const size_t encoded_image_length,
|
||||
const FrameType encoded_image_frametype) {
|
||||
const size_t encoded_length = encoded_image_length;
|
||||
CritScope lock(&crit_sect_);
|
||||
if (encoded_length > 0) {
|
||||
const bool delta_frame = encoded_image._frameType != kVideoFrameKey;
|
||||
const bool delta_frame = encoded_image_frametype != kVideoFrameKey;
|
||||
if (max_payload_size_ > 0 && encoded_length > 0) {
|
||||
const float min_packets_per_frame =
|
||||
encoded_length / static_cast<float>(max_payload_size_);
|
||||
|
||||
Reference in New Issue
Block a user