diff --git a/lib/media/content_workarounds.js b/lib/media/content_workarounds.js index a06a998a8c..3976a77f33 100644 --- a/lib/media/content_workarounds.js +++ b/lib/media/content_workarounds.js @@ -105,6 +105,12 @@ shaka.media.ContentWorkarounds = class { newType: ContentWorkarounds.BOX_TYPE_ENCA_, }); }) + .fullBox('ac-4', (box) => { + boxesToModify.push({ + box, + newType: ContentWorkarounds.BOX_TYPE_ENCA_, + }); + }) .fullBox('mp4a', (box) => { boxesToModify.push({ box, diff --git a/test/media/content_workarounds_unit.js b/test/media/content_workarounds_unit.js index 70efb9848e..261f54ff10 100644 --- a/test/media/content_workarounds_unit.js +++ b/test/media/content_workarounds_unit.js @@ -7,7 +7,7 @@ describe('ContentWorkarounds', () => { const encryptionBoxes = { 'encv': ['hev1', 'hvc1', 'avc1', 'avc3'], - 'enca': ['ac-3', 'ec-3', 'mp4a'], + 'enca': ['ac-3', 'ec-3', 'ac-4', 'mp4a'], }; for (const encryptionBox of Object.keys(encryptionBoxes)) { for (const box of encryptionBoxes[encryptionBox]) {