summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-04-03 18:31:41 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-04-03 18:31:41 +1100
commitca214e6cd61a6f035d18ae7e96e6d63064b22859 (patch)
tree1395064b656d8d1d0de8f2ad362e0b829edac6d7 /src
parentc62be285b0891ad0038a2dcddd1a38b78318d2da (diff)
refactor(common): Change endianess function names to ff_le32 and ff_be32
Diffstat (limited to 'src')
-rw-r--r--src/format/image/png.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/format/image/png.c b/src/format/image/png.c
index cb7f08b..af04243 100644
--- a/src/format/image/png.c
+++ b/src/format/image/png.c
@@ -1,3 +1,4 @@
+#include <tinyff/common.h>
#include <tinyff/image/png.h>
// External
@@ -115,8 +116,8 @@ ff_result ff_png_header_handler(ff_ctx* ctx, uint8_t *buf, size_t len, ff_png_ct
return FF_RESULT_ERROR_INVALID_FILE;
}
- uint32_t w = get_big_endian(buf);
- uint32_t h = get_big_endian(buf + 4);
+ uint32_t w = ff_be32(buf);
+ uint32_t h = ff_be32(buf + 4);
// TODO: Do formatting.
//ff_dprintf("Width: %u\n", w);