Reformat the WebRTC code base
Running clang-format with chromium's style guide. The goal is n-fold: * providing consistency and readability (that's what code guidelines are for) * preventing noise with presubmit checks and git cl format * building on the previous point: making it easier to automatically fix format issues * you name it Please consider using git-hyper-blame to ignore this commit. Bug: webrtc:9340 Change-Id: I694567c4cdf8cee2860958cfe82bfaf25848bb87 Reviewed-on: https://webrtc-review.googlesource.com/81185 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23660}
This commit is contained in:
@ -19,8 +19,8 @@
|
||||
|
||||
#include "modules/include/module_common_types.h"
|
||||
#include "modules/video_coding/codecs/vp8/include/vp8_common_types.h"
|
||||
#include "modules/video_coding/include/video_coding_defines.h"
|
||||
#include "modules/video_coding/fec_rate_table.h"
|
||||
#include "modules/video_coding/include/video_coding_defines.h"
|
||||
#include "modules/video_coding/nack_fec_tables.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -285,9 +285,8 @@ bool VCMFecMethod::ProtectionFactor(const VCMProtectionParameters* parameters) {
|
||||
// Average number of packets per frame (source and fec):
|
||||
const uint8_t avgTotPackets = static_cast<uint8_t>(
|
||||
std::min(static_cast<float>(std::numeric_limits<uint8_t>::max()),
|
||||
1.5f +
|
||||
static_cast<float>(bitRatePerFrame) * 1000.0f /
|
||||
static_cast<float>(8.0 * _maxPayloadSize)));
|
||||
1.5f + static_cast<float>(bitRatePerFrame) * 1000.0f /
|
||||
static_cast<float>(8.0 * _maxPayloadSize)));
|
||||
|
||||
// FEC rate parameters: for P and I frame
|
||||
uint8_t codeRateDelta = 0;
|
||||
|
Reference in New Issue
Block a user