Fixes missing type bug in zig-bindings introduced on #3756 (#3919)

Co-authored-by: Gustavo Maciel <gus@tavomaciel>
This commit is contained in:
Gustavo Maciel
2026-08-23 11:47:50 +10:00
committed by GitHub
parent 307cbbfbcb
commit 19eedfed66
2 changed files with 4 additions and 2 deletions

View File

@@ -1759,7 +1759,7 @@ pub const Init = extern struct {
pub const VideoDecoderInit = extern struct {
magic: u32,
codec: VideoCodec,
parameterSets: [*c]const uint8_t,
parameterSets: [*c]const u8,
parameterSetsSize: u32,
cachedAuBytes: u32,
flags: u8,
@@ -1772,7 +1772,7 @@ pub const Init = extern struct {
pub const VideoDecoderFrame = extern struct {
magic: u32,
bitstream: [*c]const uint8_t,
bitstream: [*c]const u8,
aus: [*c]const VideoDecoderAu,
numAus: u32,
presentationTimeUs: i64,

View File

@@ -75,6 +75,8 @@ local function convert_type_0(arg)
return arg.ctype:gsub("float", "f32")
elseif arg.ctype == "const char*" then
return "[*c]const u8"
elseif arg.ctype == "const uint8_t*" then
return "[*c]const u8"
elseif hasPrefix(arg.ctype, "char") then
return arg.ctype:gsub("char", "u8")
elseif hasSuffix(arg.fulltype, "Handle") then