Delete nack_enabled flag in encoder configuration.
This is a followup to cl https://webrtc-review.googlesource.com/71380, which reworked the way encoder resilience is done, and made the nack_enabled flag unused. Bug: webrtc:8830 Change-Id: I3de2508c97bc71e01c8f2232d16cd1f33e57fe4a Reviewed-on: https://webrtc-review.googlesource.com/69986 Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23080}
This commit is contained in:
@ -29,13 +29,12 @@ namespace webrtc {
|
||||
bool VideoCodecInitializer::SetupCodec(
|
||||
const VideoEncoderConfig& config,
|
||||
const std::vector<VideoStream>& streams,
|
||||
bool nack_enabled,
|
||||
VideoCodec* codec,
|
||||
std::unique_ptr<VideoBitrateAllocator>* bitrate_allocator) {
|
||||
if (config.codec_type == kVideoCodecMultiplex) {
|
||||
VideoEncoderConfig associated_config = config.Copy();
|
||||
associated_config.codec_type = kVideoCodecVP9;
|
||||
if (!SetupCodec(associated_config, streams, nack_enabled, codec,
|
||||
if (!SetupCodec(associated_config, streams, codec,
|
||||
bitrate_allocator)) {
|
||||
RTC_LOG(LS_ERROR) << "Failed to create stereo encoder configuration.";
|
||||
return false;
|
||||
@ -45,7 +44,7 @@ bool VideoCodecInitializer::SetupCodec(
|
||||
}
|
||||
|
||||
*codec =
|
||||
VideoEncoderConfigToVideoCodec(config, streams, nack_enabled);
|
||||
VideoEncoderConfigToVideoCodec(config, streams);
|
||||
*bitrate_allocator = CreateBitrateAllocator(*codec);
|
||||
|
||||
return true;
|
||||
@ -73,8 +72,7 @@ VideoCodecInitializer::CreateBitrateAllocator(const VideoCodec& codec) {
|
||||
// TODO(sprang): Split this up and separate the codec specific parts.
|
||||
VideoCodec VideoCodecInitializer::VideoEncoderConfigToVideoCodec(
|
||||
const VideoEncoderConfig& config,
|
||||
const std::vector<VideoStream>& streams,
|
||||
bool nack_enabled) {
|
||||
const std::vector<VideoStream>& streams) {
|
||||
static const int kEncoderMinBitrateKbps = 30;
|
||||
RTC_DCHECK(!streams.empty());
|
||||
RTC_DCHECK_GE(config.min_transmit_bitrate_bps, 0);
|
||||
|
Reference in New Issue
Block a user