Skip to content

Commit

Permalink
slight code improvement of sps parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Nov 6, 2024
1 parent 217278e commit 1a85e6b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/store/re_video/src/decode/ffmpeg_h264/sps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,8 @@ impl H264Sps {
let pic_width_in_mbs_minus1 = read_exponential_golomb(&mut bit_read_pos, buffer)?;
let pic_height_in_map_units_minus1 = read_exponential_golomb(&mut bit_read_pos, buffer)?;
let frame_mbs_only_flag = read_bits(&mut bit_read_pos, buffer, 1)? == 1;
let mb_adaptive_frame_field_flag = if !frame_mbs_only_flag {
read_bits(&mut bit_read_pos, buffer, 1)? == 1
} else {
false
};
let mb_adaptive_frame_field_flag =
!frame_mbs_only_flag && read_bits(&mut bit_read_pos, buffer, 1)? == 1;
let direct_8x8_inference_flag = read_bits(&mut bit_read_pos, buffer, 1)? == 1;

let (
Expand Down

0 comments on commit 1a85e6b

Please sign in to comment.