ws-video2: MpegEs Picture type annotation (type baseline)
This commit is contained in:
1 parent
d22c72c1bc
commit
6e0b80a7f2
1 file changed
+1
-1
@@ -134,7 +134,7 @@ function MpegEs.pictures(b: buffer, off: number, limit: number): { Picture }
|
||||
local x = readu8(b, p + 4) * 256 + readu8(b, p + 5)
|
||||
t, tr = (x // 8) % 8, x // 64
|
||||
end
|
||||
cur = { offset = unitStart or p, size = 0, type = t, temporal = tr, gop = gop, sequence = seq, structure = st }
|
||||
cur = { offset = unitStart or p, size = 0, type = t, temporal = tr, gop = gop, sequence = seq, structure = st } :: Picture
|
||||
unitStart, seq, gop = nil, false, false
|
||||
elseif code == 0xB7 and cur then
|
||||
cur.size = p + 4 - cur.offset
|
||||
|
||||
Reference in new issue
Block a user