39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
--- a/webrtc.gni
|
|
+++ b/webrtc.gni
|
|
@@ -152,8 +152,8 @@
|
|
|
|
# Enable this to build OpenH264 encoder/FFmpeg decoder. When building WebRTC
|
|
# as part of Chromium, this is delegated to `media_use_openh264`. When
|
|
- # building WebRTC as a standalone library, this is supported on all platforms
|
|
- # except Android and iOS. Because FFmpeg can be built with/without H.264
|
|
+ # TeamsPeach builds the FFmpeg/OpenH264 targets on mobile as well.
|
|
+ # Because FFmpeg can be built with/without H.264
|
|
# support, `ffmpeg_branding` has to separately be set to a value that
|
|
# includes H.264, for example "Chrome". If FFmpeg is built without H.264,
|
|
# compilation succeeds but `H264DecoderImpl` fails to initialize.
|
|
@@ -166,7 +166,7 @@
|
|
rtc_use_h264 = media_use_openh264
|
|
} else {
|
|
rtc_use_h264 =
|
|
- proprietary_codecs && !is_android && !is_ios && !(is_win && !is_clang)
|
|
+ proprietary_codecs && !(is_win && !is_clang)
|
|
}
|
|
|
|
# Use system OpenH264
|
|
--- a/BUILD.gn
|
|
+++ b/BUILD.gn
|
|
@@ -561,6 +561,13 @@
|
|
"media",
|
|
"modules",
|
|
"modules/video_capture:video_capture_internal_impl",
|
|
+ # Required software decode implementations, including Android and iOS.
|
|
+ "modules/video_coding:webrtc_h264",
|
|
+ "modules/video_coding:webrtc_vp8",
|
|
+ "modules/video_coding:webrtc_vp9",
|
|
+ "modules/video_coding/codecs/av1:dav1d_decoder",
|
|
+ "//third_party/ffmpeg",
|
|
+ "//third_party/openh264:encoder",
|
|
"pc:libjingle_peerconnection",
|
|
"pc:rtc_pc",
|
|
"video",
|