Closed Bug 1623651 Opened 4 years ago Closed 4 years ago

Update CDM headers to ones supporting AV1

Categories

(Core :: Audio/Video: Playback, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: bryce, Assigned: bryce)

References

Details

Attachments

(2 files)

We need to update the CDM headers used by Widevine in order to support encrypted av1 as the new headers contain enums we need.

This involves pulling the files from the Chromium repo. The following 4 files should be updated:

Note: doing so will remove support for CDM interface 9. Bug 1623661 tracks removing our usage of that interface so we can update the headers.

See bug 1487811 for the last time the headers were bumped.

Summary: Update CDM headers → Update CDM headers to ones supporting AV1

Headers are pulled from Chromium revision
bc262e26cd2dca812f05bdad3b37398839e63007.

The CDM header bump has moved some enums, as well as using enum classes instead
of old style enums. This patch updates consumers of these enums to be compatible
with the new headers.

Drive by remove using namespace cdm from a couple of files as

  • In some places I'd already been using fully qualified names.
  • I prefer the fully qualified names as they make it clear when enums are coming
    from the cdm namespace and cdm:: is not a particularly more verbose thing to
    have on identifiers.

The first patch here is a straight import of source from Chromium. We've historically preferred this approach as it makes it easier to diff (we don't format per bug 1486502). This will undo the changes from bug 1613985. :sg, is this a concern?

Flags: needinfo?(sgiesecke)

No, that's fine. I probably wasn't aware that these were external files. I am not completely sure since I did some manual work after applying the clang-tidy changes, but I assume that these were suggested by clang-tidy. In that case, they should be excluded from clang-tidy analysis. Sylvestre, WDYT?

Flags: needinfo?(sgiesecke) → needinfo?(sledru)

They should be ignored if listed in https://searchfox.org/mozilla-central/source/tools/rewriting/ThirdPartyPaths.txt
what is the path which has been reformatted?

Flags: needinfo?(sledru)
Pushed by bvandyk@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fa57f4290efb
Pull new CDM headers from Chromium. r=alwu,dminor
https://hg.mozilla.org/integration/autoland/rev/e186dc84781f
Update enums that have changed with CDM header bump. r=alwu,dminor

I'm going to land the existing changes. Please NI me if there's anything more needed to stop these being tidied and I will create a follow up bug.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: