diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-12-14 01:20:52 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-12-14 01:22:51 +0100 |
commit | 18f7607e1bb397f67c318b964fc8060072fc2cdb (patch) | |
tree | 02040f866a5b7cbf792656e6fb43944908475cd3 /tools/webpinfo.c | |
parent | 1478a9f83f2ccfcc58bb0bf0ce050bf4b40d1fb8 (diff) | |
download | fiv-18f7607e1bb397f67c318b964fc8060072fc2cdb.tar.gz fiv-18f7607e1bb397f67c318b964fc8060072fc2cdb.tar.xz fiv-18f7607e1bb397f67c318b964fc8060072fc2cdb.zip |
Add a most basic tool to inspect ISO BMFF files
This can be massively extended.
Diffstat (limited to 'tools/webpinfo.c')
-rw-r--r-- | tools/webpinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/webpinfo.c b/tools/webpinfo.c index f13ef28..a138985 100644 --- a/tools/webpinfo.c +++ b/tools/webpinfo.c @@ -38,7 +38,7 @@ parse_webp(jv o, const uint8_t *p, size_t len) // TODO(p): This can still be parseable. // TODO(p): Warn on trailing data. - uint32_t size = unle.u32(p + 4); + uint32_t size = u32le(p + 4); if (8 + size < len) return add_error(o, "truncated file"); @@ -53,7 +53,7 @@ parse_webp(jv o, const uint8_t *p, size_t len) break; } - uint32_t chunk_size = unle.u32(p + 4); + uint32_t chunk_size = u32le(p + 4); uint32_t chunk_advance = (chunk_size + 1) & ~1; if (p + 8 + chunk_advance > end) { o = add_warning(o, "runaway chunk payload"); |