Skip to content

Commit

Permalink
encoder/h264: Pass level_idc to SPS
Browse files Browse the repository at this point in the history
This change fixes propagation of level_idc in H.264 encoder. Prior to
that change the default Level value was used and in some cases could
cause decoder to fail to decoder the stream correctly.
  • Loading branch information
bgrzesik committed Mar 29, 2024
1 parent 7e99821 commit 6bb9411
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/encoder/stateless/h264/predictor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ impl<Picture, Reference> LowDelayH264<Picture, Reference> {
};

let sps = sps
.level_idc(config.level)
.max_frame_num(self.limit as u32)
.pic_order_cnt_type(0)
.max_pic_order_cnt_lsb(self.limit as u32 * 2)
Expand Down

0 comments on commit 6bb9411

Please sign in to comment.