ws-video2: MpegEs Picture type annotation (type baseline)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
9444e83f45
commit
8216b80512
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