Skip to content

Commit

Permalink
fix: Fix DRM workaround for Tizen and Xbox with avc3 boxes (shaka-pro…
Browse files Browse the repository at this point in the history
…ject#3625)

The workaround previously only matched avc1 boxes.  This adds avc3 to the workaround, fixing content that uses this box on Tizen and Xbox.
  • Loading branch information
david-hm-morgan authored Sep 10, 2021
1 parent 97ba4df commit 31b1ca9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/media/content_workarounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ shaka.media.ContentWorkarounds = class {
newType: ContentWorkarounds.BOX_TYPE_ENCV_,
});
})
.fullBox('avc3', (box) => {
boxesToModify.push({
box,
newType: ContentWorkarounds.BOX_TYPE_ENCV_,
});
})
.fullBox('ec-3', (box) => {
boxesToModify.push({
box,
Expand Down

0 comments on commit 31b1ca9

Please sign in to comment.