commit | 5d5d708de735bb52d70849a6a901a7cbebead6c4 | [log] [tgz] |
---|---|---|
author | Vignesh Venkat <vigneshv@google.com> | Thu May 02 16:39:31 2024 -0700 |
committer | Vignesh Venkatasubramanian <vigneshvg@users.noreply.github.com> | Thu May 02 16:56:19 2024 -0700 |
tree | 6c9f33ebceba20b8268ecea6c53851747e0ce94a | |
parent | 90efc1ec8c9f3cab7f43427513f23f6aadbccf88 [diff] |
obu: Use uint32_t for obu_forbidden_bits This avoids a type conversion.
diff --git a/src/obu.c b/src/obu.c index abd2628..0ef7dad 100644 --- a/src/obu.c +++ b/src/obu.c
@@ -413,7 +413,7 @@ avifBitsInit(&bits, obus.data, obus.size); // obu_header() - const uint8_t obu_forbidden_bit = avifBitsRead(&bits, 1); + const uint32_t obu_forbidden_bit = avifBitsRead(&bits, 1); if (obu_forbidden_bit != 0) { return AVIF_FALSE; }