Skip to content

Commit

Permalink
decoder/h264: reset last_field when needed
Browse files Browse the repository at this point in the history
When we encounter an IDR frame, both the DPB and last_field need to be
cleared.
  • Loading branch information
Gnurou committed Feb 14, 2024
1 parent c2f5e1a commit 550cf22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/decoder/stateless/h264.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,7 @@ where
// emptied without output of the pictures they contain, and DPB
// fullness is set to 0.
self.codec.dpb.clear();
self.codec.last_field = None;
}
}

Expand Down

0 comments on commit 550cf22

Please sign in to comment.