Skip to content

Commit

Permalink
initialize values in AVC configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 20, 2024
1 parent 338a9e4 commit 70dcb39
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libheif/codecs/avc_boxes.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ class Box_avcC : public Box {
bool is_essential() const override { return true; }

struct configuration {
uint8_t configuration_version;
uint8_t AVCProfileIndication; // profile_idc
uint8_t profile_compatibility; // constraint set flags
uint8_t AVCLevelIndication; // level_idc
uint8_t lengthSize;
uint8_t configuration_version = 0;
uint8_t AVCProfileIndication = 0; // profile_idc
uint8_t profile_compatibility = 0; // constraint set flags
uint8_t AVCLevelIndication = 0; // level_idc
uint8_t lengthSize = 0;
heif_chroma chroma_format = heif_chroma_420; // Note: avcC integer value can be cast to heif_chroma enum
uint8_t bit_depth_luma = 8;
uint8_t bit_depth_chroma = 8;
Expand Down

0 comments on commit 70dcb39

Please sign in to comment.