Skip to content

Commit

Permalink
Fix length print when encountering an unknown OBU
Browse files Browse the repository at this point in the history
  • Loading branch information
rinon committed Sep 4, 2024
1 parent cb6e302 commit d7c08cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/obu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2460,7 +2460,7 @@ fn parse_obus(
Some(Rav1dObuType::Padding) => {} // Ignore OBUs we don't care about.
None => {
// Print a warning, but don't fail for unknown types.
let len = gb.len();
let len = gb.remaining_len();
writeln!(c.logger, "Unknown OBU type {raw_type} of size {len}");
}
}
Expand Down

0 comments on commit d7c08cf

Please sign in to comment.