Always include the actual encoder implementation when RTCVideoEncoderAV1 is used.
Bug: webrtc:13573, b/236813931 Change-Id: I943ce51dac23bcbd6efe10413cfa9478f4ce6f55 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/266485 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org> Commit-Queue: Philip Eliasson <philipel@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37352}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
ce80886bf2
commit
91c05abd9b
@ -13,11 +13,14 @@
|
||||
#import "RTCH264ProfileLevelId.h"
|
||||
#import "RTCVideoEncoderH264.h"
|
||||
#import "api/video_codec/RTCVideoCodecConstants.h"
|
||||
#import "api/video_codec/RTCVideoEncoderAV1.h"
|
||||
#import "api/video_codec/RTCVideoEncoderVP8.h"
|
||||
#import "api/video_codec/RTCVideoEncoderVP9.h"
|
||||
#import "base/RTCVideoCodecInfo.h"
|
||||
|
||||
#if defined(RTC_USE_LIBAOM_AV1_ENCODER)
|
||||
#import "api/video_codec/RTCVideoEncoderAV1.h" // nogncheck
|
||||
#endif
|
||||
|
||||
@implementation RTC_OBJC_TYPE (RTCDefaultVideoEncoderFactory)
|
||||
|
||||
@synthesize preferredCodec;
|
||||
@ -55,10 +58,9 @@
|
||||
addObject:[[RTC_OBJC_TYPE(RTCVideoCodecInfo) alloc] initWithName:kRTCVideoCodecVp9Name]];
|
||||
}
|
||||
|
||||
if ([RTC_OBJC_TYPE(RTCVideoEncoderAV1) isSupported]) {
|
||||
[result
|
||||
addObject:[[RTC_OBJC_TYPE(RTCVideoCodecInfo) alloc] initWithName:kRTCVideoCodecAv1Name]];
|
||||
}
|
||||
#if defined(RTC_USE_LIBAOM_AV1_ENCODER)
|
||||
[result addObject:[[RTC_OBJC_TYPE(RTCVideoCodecInfo) alloc] initWithName:kRTCVideoCodecAv1Name]];
|
||||
#endif
|
||||
|
||||
return result;
|
||||
}
|
||||
@ -71,10 +73,13 @@
|
||||
} else if ([info.name isEqualToString:kRTCVideoCodecVp9Name] &&
|
||||
[RTC_OBJC_TYPE(RTCVideoEncoderVP9) isSupported]) {
|
||||
return [RTC_OBJC_TYPE(RTCVideoEncoderVP9) vp9Encoder];
|
||||
} else if ([info.name isEqualToString:kRTCVideoCodecAv1Name] &&
|
||||
[RTC_OBJC_TYPE(RTCVideoEncoderAV1) isSupported]) {
|
||||
}
|
||||
|
||||
#if defined(RTC_USE_LIBAOM_AV1_ENCODER)
|
||||
if ([info.name isEqualToString:kRTCVideoCodecAv1Name]) {
|
||||
return [RTC_OBJC_TYPE(RTCVideoEncoderAV1) av1Encoder];
|
||||
}
|
||||
#endif
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
Reference in New Issue
Block a user