Skip to content

Commit

Permalink
obu: Use uint32_t for obu_forbidden_bits
Browse files Browse the repository at this point in the history
This avoids a type conversion.
  • Loading branch information
vigneshvg committed May 2, 2024
1 parent 90efc1e commit 5d5d708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/obu.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ avifBool avifSequenceHeaderParse(avifSequenceHeader * header, const avifROData *
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;
}
Expand Down

0 comments on commit 5d5d708

Please sign in to comment.