ws-video2-flv: flv extensions (f4v is ISO BMFF, not FLV), H263 Decoder comments

This commit is contained in:
4DBug committed 2026-10-31 15:33:36 -05:00
1 parent f23d0aa3e8
commit a417d07978
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -294,7 +294,7 @@ local list: { Entry } = {
name = "flv",
category = "video",
path = "video/flv",
extensions = { "flv", "f4v" },
extensions = { "flv" },
mime = { "video/x-flv", "video/flv" },
deps = { "core/Err", "core/Bytes", "Types", "containers/Demux", "codecs/video/Video", "codecs/video/Video/Source", "codecs/video/H263", "codecs/video/H264", "codecs/audio/Aac" },
caps = { decode = true, encode = true, streaming = true, remux = true, video = { "flv1", "h264" }, audio = true, metadata = true },
+4 -4
View File
@@ -22,7 +22,7 @@
-- (tests/codecs/h263.luau). Corrupt data ends the picture: the rest is copied from the reference (state.errors).
--
-- local core = D.new(flv, maxPixels)
-- local hdr, msg = D.header(buf, off, len, flv, core.opp) -- the picture header (no decoding)
-- local hdr, msg = D.header(buf, off, len, flv, core.state.opp) -- the picture header (no decoding)
-- local store, msg = core.decode(buf, off, len) -- one picture -> the Store decoded into (decoder-owned)
-- core.reset() -- forget the reference (after a seek)
local Tb = require("@formats/codecs/video/H263/Tables")
@@ -636,9 +636,9 @@ function D.new(flv: boolean, maxPixels: number?): Core
end
end
-- macroblock (col, row) of a picture (P: an inter picture; top: in the first row of the picture or of a GOB /
-- slice with a header, whose vector predictions do not look up; first: the first macroblock of a slice, whose
-- left neighbour is outside). false on bad data.
-- macroblock (col, row) of a picture (P: an inter picture; top: within the first macroblock columns' worth of
-- the picture / a GOB or slice with a header, whose vector predictions do not look up; first: the first
-- macroblock of a slice, whose left neighbour is outside). false on bad data.
local function macroblock(col: number, row: number, P: boolean, top: boolean, first: boolean): boolean
if pos > endBits then
return false
+1 -1
View File
@@ -33,7 +33,7 @@ local Mux = require("@formats/video/flv/Mux")
local Flv = {
name = "flv",
category = "video",
extensions = { "flv", "f4v" },
extensions = { "flv" },
mime = { "video/x-flv", "video/flv" },
deps = { "core/Err", "core/Bytes", "Types", "containers/Demux", "codecs/video/Video", "codecs/video/Video/Source", "codecs/video/H263", "codecs/video/H264", "codecs/audio/Aac" },
caps = { decode = true, encode = true, streaming = true, remux = true, video = { "flv1", "h264" }, audio = true, metadata = true },