Fix deprecated and printf warnings.
[ Merge of http://go/wvgerrit/118703 ] Bug: 182058081 Test: WV unit/integration tests Change-Id: I2d8995b8aab864a2d2f5161d12a473d34e67bad4
This commit is contained in:
@@ -558,13 +558,16 @@ bool InitializationData::ConstructWidevineInitData(
|
||||
|
||||
// Now format as Widevine init data protobuf
|
||||
WidevinePsshData cenc_header;
|
||||
// TODO(rfrias): The algorithm is a deprecated field, but proto changes
|
||||
// have not yet been pushed to production. Set until then.
|
||||
// TODO(rfrias): The algorithm and provider are deprecated fields, but proto
|
||||
// changes have not yet been pushed to production. Set until then.
|
||||
CORE_UTIL_IGNORE_DEPRECATED
|
||||
cenc_header.set_algorithm(WidevinePsshData_Algorithm_AESCTR);
|
||||
cenc_header.set_provider(provider);
|
||||
CORE_UTIL_RESTORE_WARNINGS
|
||||
|
||||
for (size_t i = 0; i < key_ids.size(); ++i) {
|
||||
cenc_header.add_key_ids(key_ids[i]);
|
||||
}
|
||||
cenc_header.set_provider(provider);
|
||||
cenc_header.set_content_id(content_id);
|
||||
if (method == kHlsMethodAes128)
|
||||
cenc_header.set_protection_scheme(kFourCcCbc1);
|
||||
|
||||
Reference in New Issue
Block a user