ws-video: video/avi tests (OpenDML / idx1 / scan, PCM / ADPCM / MP2 audio, raw RGB / I420, mux round trip), video/y4m tests (every C tag, 10-bit, writer), empty audio chunks are padding

This commit is contained in:
4DBug committed 2026-10-31 09:45:10 -05:00
1 parent 9411cd97c6
commit d221bb5327
9 files changed
+402 -9

No files matched your search

+3 -1
View File
@@ -205,8 +205,10 @@ function AviFormat.demux(r: Bytes.Reader, _opts: OpenOptions?): (any, Err.Err?)
end
if c.size > 0 then
table.insert(items, { c.offset, k, tick, dur, if c.key then 1 else 0, c.size })
tick += dur
elseif t.kind == "video" then
tick += 1 -- an empty video chunk: a dropped frame keeps its slot (empty audio chunks are padding)
end
tick += dur
end
end
table.sort(items, function(a: { number }, b: { number }): boolean