ws-video: MJPEG (codecs/Jpeg, yuv420p full range; encoder remaps limited-range frames) and MPEG-1 (codecs/Mpeg1, display reordering with the packet pts as tag) in the codec registry; VideoFrame times count from the demuxer's startTime (TS starts at 1.4 s); Matroska Vorbis keeps its codec delay; fixtures decode with -fps_mode passthrough

This commit is contained in:
4DBug committed 2026-10-31 09:57:26 -05:00
1 parent ba996820b5
commit bd06545e2e
9 files changed
+136 -11

No files matched your search

+3 -1
View File
@@ -442,7 +442,9 @@ function AudioWrap.wrap(dmx: any, track: Types.Track): (buffer?, string?, Err.Er
end
local m = if mb > 0 and buffer.len(d) * 8 > mb then bits(d, 1, mb) else 0
local cur = sizes[if modes[m + 1] then 2 else 1]
granule += ((prev or cur) + cur) // 4 -- the first packet counts as if after a block of its own size (ffmpeg)
if prev then
granule += (prev + cur) // 4
end
prev = cur
return granule
end)