Add AV1 to default video encoder factory
while checking for software supported codecs avoid creating encoder factory to avoid linking av1 encoder and libaom. Bug: webrtc:11404 Change-Id: I32771696efb59d98ba08592a20eb691b56622deb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/172625 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30973}
This commit is contained in:
committed by
Commit Bot
parent
cfa0e8ffe2
commit
4553f45d2a
@ -438,8 +438,7 @@ bool IsFormatSupported(const std::vector<SdpVideoFormat>& supported_formats,
|
||||
bool MediaCodecVideoEncoder::ProcessHWError(
|
||||
bool reset_if_fallback_unavailable) {
|
||||
ALOGE << "ProcessHWError";
|
||||
if (IsFormatSupported(InternalEncoderFactory().GetSupportedFormats(),
|
||||
format_)) {
|
||||
if (IsFormatSupported(InternalEncoderFactory::SupportedFormats(), format_)) {
|
||||
ALOGE << "Fallback to SW encoder.";
|
||||
sw_fallback_required_ = true;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user