Skip to content

Commit

Permalink
Fix some nightly-introduced warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero authored and barrbrain committed May 28, 2020
1 parent 034b045 commit 68c4f8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ pub struct ReferenceFrame<T: Pixel> {

#[derive(Debug, Clone, Default)]
pub struct ReferenceFramesSet<T: Pixel> {
pub frames: [Option<Arc<ReferenceFrame<T>>>; (REF_FRAMES as usize)],
pub deblock: [DeblockState; (REF_FRAMES as usize)],
pub frames: [Option<Arc<ReferenceFrame<T>>>; REF_FRAMES as usize],
pub deblock: [DeblockState; REF_FRAMES as usize],
}

impl<T: Pixel> ReferenceFramesSet<T> {
Expand Down Expand Up @@ -874,7 +874,7 @@ impl<T: Pixel> FrameInvariants<T> {
};
// 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();
Expand Down

0 comments on commit 68c4f8f

Please sign in to comment.