mirror of
https://github.com/bytedance/xgplayer.git
synced 2025-04-05 03:05:02 +08:00
fix: (xgplayer-mp4) 修复了当AV1视频流没有colr(颜色信息)box时出现的undefined错误,该错误会影响blob模式播放。
This commit is contained in:
parent
c945b03dae
commit
efca4a20ab
@ -873,7 +873,9 @@ export class MP4Parser {
|
|||||||
v.codecType = VideoCodecType.AV1
|
v.codecType = VideoCodecType.AV1
|
||||||
v.codec = e1.av1C.codec
|
v.codec = e1.av1C.codec
|
||||||
v.av1C = e1.av1C.data
|
v.av1C = e1.av1C.data
|
||||||
v.colr = e1.colr.data
|
if (e1.colr) {
|
||||||
|
v.colr = e1.colr.data
|
||||||
|
}
|
||||||
} else if (e1.hvcC) {
|
} else if (e1.hvcC) {
|
||||||
v.codecType = VideoCodecType.HEVC
|
v.codecType = VideoCodecType.HEVC
|
||||||
v.codec = e1.hvcC.codec
|
v.codec = e1.hvcC.codec
|
||||||
|
Loading…
x
Reference in New Issue
Block a user