Skip to content

Commit

Permalink
decoder/h264: only pass needed member to method
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnurou committed Feb 14, 2024
1 parent ae9590a commit c2f5e1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/decoder/stateless/h264.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1274,10 +1274,10 @@ where
// picture as required by the specification.
fn check_first_mb_in_slice(
&mut self,
cur_pic: &mut CurrentPicState<B::Picture>,
current_macroblock: &mut CurrentMacroblockTracking,
slice: &Slice,
) {
match &mut cur_pic.current_macroblock {
match current_macroblock {
CurrentMacroblockTracking::SeparateColorPlane(current_macroblock) => {
match current_macroblock.entry(slice.header.colour_plane_id) {
Entry::Vacant(current_macroblock) => {
Expand Down Expand Up @@ -1309,7 +1309,7 @@ where
cur_pic: &mut CurrentPicState<B::Picture>,
slice: &Slice,
) -> anyhow::Result<()> {
self.check_first_mb_in_slice(cur_pic, slice);
self.check_first_mb_in_slice(&mut cur_pic.current_macroblock, slice);

// A slice can technically refer to another PPS.
let pps = self
Expand Down

0 comments on commit c2f5e1a

Please sign in to comment.