Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Unified Diff: media/BUILD.gn

Issue 1517473002: Support HLS MPEG2 TS with SAMPLE-AES encryption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@encryption_scheme
Patch Set: move some gn defs Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/bit_reader.h » ('j') | media/base/bit_reader.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/BUILD.gn
diff --git a/media/BUILD.gn b/media/BUILD.gn
index e91398a02ec62407a246aab9fa4f75ae4b2e8fa5..af33ffeffb1e6e47c35a7551407fb42805e42800 100644
--- a/media/BUILD.gn
+++ b/media/BUILD.gn
@@ -19,6 +19,7 @@ buildflag_header("media_features") {
"ENABLE_AC3_EAC3_AUDIO_DEMUXING=$enable_ac3_eac3_audio_demuxing",
"ENABLE_HEVC_DEMUXING=$enable_hevc_demuxing",
"ENABLE_MSE_MPEG2TS_STREAM_PARSER=$enable_mse_mpeg2ts_stream_parser",
+ "ENABLE_HLS_SAMPLE_AES=$enable_hls_sample_aes",
]
}
@@ -438,6 +439,8 @@ component("media") {
]
if (enable_mse_mpeg2ts_stream_parser) {
sources += [
+ "formats/mp2t/descriptors.cc",
+ "formats/mp2t/descriptors.h",
"formats/mp2t/es_adapter_video.cc",
"formats/mp2t/es_adapter_video.h",
"formats/mp2t/es_parser.cc",
@@ -465,6 +468,16 @@ component("media") {
"formats/mp2t/ts_section_psi.cc",
"formats/mp2t/ts_section_psi.h",
]
+ if (enable_hls_sample_aes) {
+ sources += [
+ "formats/mp2t/ts_section_cat.cc",
+ "formats/mp2t/ts_section_cat.h",
+ "formats/mp2t/ts_section_cets_ecm.cc",
+ "formats/mp2t/ts_section_cets_ecm.h",
+ "formats/mp2t/ts_section_cets_pssh.cc",
+ "formats/mp2t/ts_section_cets_pssh.h",
+ ]
+ }
}
}
@@ -700,6 +713,9 @@ test("media_unittests") {
if (enable_hevc_demuxing) {
sources += [ "filters/h265_parser_unittest.cc" ]
}
+ if (enable_hls_sample_aes) {
+ deps += [ "//third_party/boringssl" ]
+ }
}
if (is_mac || is_ios) {
« no previous file with comments | « no previous file | media/base/bit_reader.h » ('j') | media/base/bit_reader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698