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

Commit d0f5ba8

Browse files
authored
Compile two H.264 files only when external FFMPEG is specified. (#197)
1 parent cc36ee9 commit d0f5ba8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

modules/video_coding/BUILD.gn

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,15 +500,20 @@ rtc_library("webrtc_h264") {
500500
visibility = [ "*" ]
501501
sources = [
502502
"codecs/h264/h264.cc",
503-
"codecs/h264/h264_color_space.cc",
504-
"codecs/h264/h264_color_space.h",
505-
"codecs/h264/h264_decoder_impl.cc",
506-
"codecs/h264/h264_decoder_impl.h",
507503
"codecs/h264/h264_encoder_impl.cc",
508504
"codecs/h264/h264_encoder_impl.h",
509505
"codecs/h264/include/h264.h",
510506
]
511507

508+
if (owt_ffmpeg_root != "") {
509+
sources += [
510+
"codecs/h264/h264_color_space.cc",
511+
"codecs/h264/h264_color_space.h",
512+
"codecs/h264/h264_decoder_impl.cc",
513+
"codecs/h264/h264_decoder_impl.h",
514+
]
515+
}
516+
512517
defines = []
513518
include_dirs = []
514519

0 commit comments

Comments
 (0)