Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit f897ea8

Browse files
authored
Fix build errors when rtc_use_h265 is true. (#676)
1 parent 55c9142 commit f897ea8

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

talk/owt/sdk/base/objc/OWTDefaultVideoDecoderFactory.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

5-
#import "RTCEncodedImage.h"
6-
#if defined(WEBRTC_USE_H265)
7-
#import "RTCVideoCodecH265.h"
8-
#endif
95
#import "talk/owt/sdk/base/objc/OWTDefaultVideoDecoderFactory.h"
6+
#import "RTCEncodedImage.h"
7+
#import "third_party/webrtc/sdk/objc/components/video_codec/RTCH265ProfileLevelId.h"
8+
#import "third_party/webrtc/sdk/objc/components/video_codec/RTCVideoDecoderH265.h"
9+
1010
@implementation OWTDefaultVideoDecoderFactory
1111
- (id<RTCVideoDecoder>)createDecoder:(RTCVideoCodecInfo*)info {
1212
#if defined(WEBRTC_USE_H265)

talk/owt/sdk/base/objc/OWTDefaultVideoEncoderFactory.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

5-
#import "RTCEncodedImage.h"
6-
#if defined(WEBRTC_USE_H265)
7-
#import "RTCVideoCodecH265.h"
8-
#endif
95
#import "talk/owt/sdk/base/objc/OWTDefaultVideoEncoderFactory.h"
6+
#import "RTCEncodedImage.h"
7+
#import "third_party/webrtc/sdk/objc/components/video_codec/RTCH265ProfileLevelId.h"
8+
#import "third_party/webrtc/sdk/objc/components/video_codec/RTCVideoEncoderH265.h"
9+
1010
@implementation OWTDefaultVideoEncoderFactory
1111
@synthesize preferredCodec;
1212
+ (NSArray<RTCVideoCodecInfo*>*)supportedCodecs {

0 commit comments

Comments
 (0)