ws-video2: MpegEs Picture type annotation (type baseline)

This commit is contained in:
4DBug committed 2026-10-31 14:51:14 -05:00
1 parent d22c72c1bc
commit 6e0b80a7f2
1 file changed
+1 -1
+1 -1
View File
@@ -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