Skip to content

Commit

Permalink
Sample AES decryption with 48 AVC Closes: video-dev#3102
Browse files Browse the repository at this point in the history
  • Loading branch information
Krystian Kuczek committed Oct 19, 2020
1 parent 489fbe3 commit 4cac1ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
@@ -1,4 +1,5 @@
{
"version": "0.14.16-nuvi",
"name": "hls.js",
"license": "Apache-2.0",
"description": "JavaScript HLS client using MediaSourceExtension",
Expand Down
2 changes: 1 addition & 1 deletion src/demux/sample-aes.js
Expand Up @@ -105,7 +105,7 @@ class SampleAesDecrypter {
}

let curUnit = curUnits[unitIndex];
if (curUnit.length <= 48 || (curUnit.type !== 1 && curUnit.type !== 5)) {
if (curUnit.data.length <= 48 || (curUnit.type !== 1 && curUnit.type !== 5)) {
continue;
}

Expand Down

0 comments on commit 4cac1ee

Please sign in to comment.