Skip to content

Commit

Permalink
use the default rust repr
Browse files Browse the repository at this point in the history
in practice this is a usize
  • Loading branch information
folkertdev committed Mar 3, 2024
1 parent f2944fe commit 5d9b098
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/levels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::ops::Neg;
use strum::EnumCount;
use strum::FromRepr;

#[repr(u32)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, FromRepr)]
pub enum ObuMetaType {
HdrCll = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/obu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2350,7 +2350,7 @@ unsafe fn parse_obus(
return Err(EINVAL);
}

match ObuMetaType::from_repr(meta_type) {
match ObuMetaType::from_repr(meta_type as usize) {
Some(ObuMetaType::HdrCll) => {
let debug = debug.named("CLLOBU");
let max_content_light_level = gb.get_bits(16) as c_int;
Expand Down

0 comments on commit 5d9b098

Please sign in to comment.