From ba6a58776b15ed2fdb75c0198626f93dec0d7fb3 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 23 Aug 2022 08:52:36 +0800 Subject: [PATCH] =?UTF-8?q?parseChunks=E6=96=B9=E6=B3=95=E4=B8=ADtagType?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/demux/flv-demuxer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/demux/flv-demuxer.js b/src/demux/flv-demuxer.js index 9cd1e27c..ce32c75b 100644 --- a/src/demux/flv-demuxer.js +++ b/src/demux/flv-demuxer.js @@ -306,7 +306,8 @@ class FLVDemuxer { break; } - let tagType = v.getUint8(0); + //v[0] = Reversed<<6|Filter<<5|TagType + let tagType = v.getUint8(0)& 0x1f; let dataSize = v.getUint32(0, !le) & 0x00FFFFFF; if (offset + 11 + dataSize + 4 > chunk.byteLength) {