ws-cleanup-types: Types, api, host: honest annotations; return the full annotated value count
This commit is contained in:
1 parent
59a0352ca6
commit
f209801579
22 files changed
+147
-147
No files matched your search
@@ -242,7 +242,7 @@ end
|
||||
|
||||
local function vorbisModes(id: buffer, setup: buffer): ({ number }?, { boolean }?)
|
||||
if buffer.len(id) < 30 or buffer.len(setup) < 8 then
|
||||
return nil
|
||||
return nil, nil
|
||||
end
|
||||
local bs = buffer.readu8(id, 28)
|
||||
local sizes = { 2 ^ (bs % 16), 2 ^ (bs // 16) }
|
||||
@@ -278,7 +278,7 @@ local function vorbisModes(id: buffer, setup: buffer): ({ number }?, { boolean }
|
||||
return sizes, out
|
||||
end
|
||||
end
|
||||
return nil
|
||||
return nil, nil
|
||||
end
|
||||
|
||||
-- ------------------------------------------------------------------------------------------------ ADTS
|
||||
|
||||
Reference in new issue
Block a user