From 4cac1ee54d684eb290ec5615af18e4f5b8fd4ae2 Mon Sep 17 00:00:00 2001 From: Krystian Kuczek Date: Mon, 19 Oct 2020 11:37:24 +0200 Subject: [PATCH] Sample AES decryption with 48 AVC Closes: #3102 --- package.json | 1 + src/demux/sample-aes.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4f1ce24823c..d56d86b8267 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "version": "0.14.16-nuvi", "name": "hls.js", "license": "Apache-2.0", "description": "JavaScript HLS client using MediaSourceExtension", diff --git a/src/demux/sample-aes.js b/src/demux/sample-aes.js index 47a96544f5a..ab808addafd 100644 --- a/src/demux/sample-aes.js +++ b/src/demux/sample-aes.js @@ -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; }