MediaCodecVideoEncoder: Fall back to SW when simulcast is requested.
Bug: webrtc:9675 Change-Id: I464c3bfefcf8271da2ea68588b9635b10a7eb6b0 Reviewed-on: https://webrtc-review.googlesource.com/96402 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Commit-Queue: Rasmus Brandt <brandtr@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24465}
This commit is contained in:
committed by
Commit Bot
parent
5b7a484ff1
commit
a911eaf79b
@ -341,6 +341,13 @@ int32_t MediaCodecVideoEncoder::InitEncode(const VideoCodec* codec_settings,
|
||||
ALOGD << "InitEncode request: " << init_width << " x " << init_height;
|
||||
ALOGD << "Encoder automatic resize " << (scale_ ? "enabled" : "disabled");
|
||||
|
||||
if (codec_settings->numberOfSimulcastStreams > 1) {
|
||||
ALOGD << "Number of simulcast layers requested: "
|
||||
<< codec_settings->numberOfSimulcastStreams
|
||||
<< ". Requesting software fallback.";
|
||||
return WEBRTC_VIDEO_CODEC_FALLBACK_SOFTWARE;
|
||||
}
|
||||
|
||||
// Check allowed H.264 profile
|
||||
profile_ = H264::Profile::kProfileBaseline;
|
||||
if (codec_type == kVideoCodecH264) {
|
||||
|
||||
Reference in New Issue
Block a user