From ba19d291cd76b9f448ef124d16fe74df55a024f1 Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 3 Sep 2022 17:42:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9tagType=E7=9A=84=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E6=96=B9=E5=BC=8F=EF=BC=8C=E4=BD=BF=E5=85=B6=E6=9B=B4?= =?UTF-8?q?=E4=B8=A5=E8=B0=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/demux/flv-demuxer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/demux/flv-demuxer.js b/src/demux/flv-demuxer.js index 9cd1e27c..7a5bfbe5 100644 --- a/src/demux/flv-demuxer.js +++ b/src/demux/flv-demuxer.js @@ -305,8 +305,9 @@ class FLVDemuxer { // data not enough for parsing an flv tag break; } - - let tagType = v.getUint8(0); + //v[0] = Reversed<<6|Filter<<5|TagType + let tagType = v.getUint8(0)& 0x1f; + //let tagType = v.getUint8(0); let dataSize = v.getUint32(0, !le) & 0x00FFFFFF; if (offset + 11 + dataSize + 4 > chunk.byteLength) {