diff --git a/src/encoder.rs b/src/encoder.rs index 41e460166a..74e4619947 100644 --- a/src/encoder.rs +++ b/src/encoder.rs @@ -91,8 +91,8 @@ pub struct ReferenceFrame { #[derive(Debug, Clone, Default)] pub struct ReferenceFramesSet { - pub frames: [Option>>; (REF_FRAMES as usize)], - pub deblock: [DeblockState; (REF_FRAMES as usize)], + pub frames: [Option>>; REF_FRAMES as usize], + pub deblock: [DeblockState; REF_FRAMES as usize], } impl ReferenceFramesSet { @@ -874,7 +874,7 @@ impl FrameInvariants { }; // use a reference to the previous frame in the same level // (horizontally) as a third reference - fi.ref_frames[ref_in_previous_group.to_index()] = { slot_idx as u8 } + fi.ref_frames[ref_in_previous_group.to_index()] = slot_idx as u8; } fi.set_ref_frame_sign_bias();