Read the number of TLs for VP9 too + cleanup
In video_sender.cc, properly read the number of temporal layers for VP9 too. Also, some cleanup in video_loopback.cc and video_quality_test.h. Review URL: https://codereview.webrtc.org/1351693005 Cr-Commit-Position: refs/heads/master@{#10201}
This commit is contained in:
@ -106,9 +106,15 @@ int32_t VideoSender::RegisterSendCodec(const VideoCodec* sendCodec,
|
||||
return VCM_CODEC_ERROR;
|
||||
}
|
||||
|
||||
int numLayers = (sendCodec->codecType != kVideoCodecVP8)
|
||||
? 1
|
||||
: sendCodec->codecSpecific.VP8.numberOfTemporalLayers;
|
||||
int numLayers;
|
||||
if (sendCodec->codecType == kVideoCodecVP8) {
|
||||
numLayers = sendCodec->codecSpecific.VP8.numberOfTemporalLayers;
|
||||
} else if (sendCodec->codecType == kVideoCodecVP9) {
|
||||
numLayers = sendCodec->codecSpecific.VP9.numberOfTemporalLayers;
|
||||
} else {
|
||||
numLayers = 1;
|
||||
}
|
||||
|
||||
// If we have screensharing and we have layers, we disable frame dropper.
|
||||
bool disable_frame_dropper =
|
||||
numLayers > 1 && sendCodec->mode == kScreensharing;
|
||||
|
||||
Reference in New Issue
Block a user