mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 08:32:11 +01:00
std/vp8: fix QUIRK_WIDTH_AND_HEIGHT height
This commit is contained in:
1 parent
e7f6c79752
commit
5f398130e8
3 files changed
+4
-4
No files matched your search
@@ -251,7 +251,7 @@ pub func decoder.set_quirk!(key: base.u32, value: base.u64) base.status {
|
||||
|
||||
} else if args.key == QUIRK_WIDTH_AND_HEIGHT {
|
||||
w = (args.value & 0xFFFF_FFFF) as base.u32
|
||||
h = (args.value & 0xFFFF_FFFF) as base.u32
|
||||
h = (args.value >> 32) as base.u32
|
||||
if (w < 1) or (0x3FFF < w) or (h < 1) or (0x3FFF < h) {
|
||||
return "#bad QUIRK_WIDTH_AND_HEIGHT"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user