mirror of
https://github.com/bytedance/xgplayer.git
synced 2025-04-05 03:05:02 +08:00
fix: (xgplayer-hls) adts parser兼容异常case造成页面crash
This commit is contained in:
parent
e8f3115cfc
commit
ca55248620
@ -55,7 +55,7 @@ export class AAC {
|
||||
}
|
||||
|
||||
frameLength = ((data[i + 3] & 0x03) << 11) | (data[i + 4] << 3) | ((data[i + 5] & 0xe0) >> 5)
|
||||
if ((len - i) < frameLength) break
|
||||
if (!frameLength || (len - i) < frameLength) break
|
||||
|
||||
protectionSkipBytes = (~data[i + 1] & 0x01) * 2
|
||||
frames.push({
|
||||
|
Loading…
x
Reference in New Issue
Block a user