From f6c3a2095c1af106da9ea601690cf4ea1fc715c2 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 (cherry picked from commit 693a6048bbe197c2e1e4d940b72a83450125e2dc) --- 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; }