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

+1 -1
View File
@@ -29,7 +29,7 @@ def case(ctx, tmp, name, raw_frames=2, audio=True, video=True, pcm_frames=8192):
c = {"name": name, "data": data, "streams": V.streams(path), "packets": V.packets(path)}
vs = [s for s in c["streams"] if s["kind"] == "video"]
if video and vs:
frames = V.yuv_frames(path, vs[0]["width"], vs[0]["height"])
frames = V.yuv_frames(path, vs[0]["width"], vs[0]["height"], codec=vs[0]["codec"])
c["frames"] = [V.crc(f) for f in frames]
c["yuv"] = frames[:raw_frames]
if audio and any(s["kind"] == "audio" for s in c["streams"]):