Skip to content

Commit

Permalink
evc: more linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh committed Oct 30, 2024
1 parent ceb5912 commit 48ccd0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libheif/codecs/evc_boxes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ Error Box_evcC::write(StreamWriter& writer) const
writer.write32(m_configuration.toolset_idc_h);
writer.write32(m_configuration.toolset_idc_l);
uint8_t chroma_format_idc_bits = m_configuration.chroma_format_idc << 6;
uint8_t bit_depth_luma_minus8_bits = ((m_configuration.bit_depth_luma - 8) & 0b111) << 3;
uint8_t bit_depth_chroma_minus8_bits = ((m_configuration.bit_depth_chroma - 8) & 0b111);
uint8_t bit_depth_luma_minus8_bits = (uint8_t)((m_configuration.bit_depth_luma - 8) & 0b111) << 3;
uint8_t bit_depth_chroma_minus8_bits = (uint8_t)((m_configuration.bit_depth_chroma - 8) & 0b111);
writer.write8(chroma_format_idc_bits | bit_depth_luma_minus8_bits | bit_depth_chroma_minus8_bits);
writer.write16(m_configuration.pic_width_in_luma_samples);
writer.write16(m_configuration.pic_height_in_luma_samples);
Expand Down

0 comments on commit 48ccd0d

Please sign in to comment.