From 84db39d4af72081d184b2f15587047e12468ecff 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 --- src/demux/sample-aes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }