Skip to content

Commit fd61961

Browse files
authored
perf: Stop parsing the mp4 when the init segment is encrypted on ContentWorkarounds (#8353)
1 parent c46963f commit fd61961

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/media/content_workarounds.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ shaka.media.ContentWorkarounds = class {
5050

5151
const onEncryptionMetadataBox = (box) => {
5252
isEncrypted = true;
53+
box.parser.stop();
5354
};
5455

5556
// Multiplexed content could have multiple boxes that we need to modify.

0 commit comments

Comments
 (0)