From 70dcb39d1f3cb5c81ff696c8a1534e9cbb8af96f Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Sun, 20 Oct 2024 16:55:16 +0200 Subject: [PATCH] initialize values in AVC configuration --- libheif/codecs/avc_boxes.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libheif/codecs/avc_boxes.h b/libheif/codecs/avc_boxes.h index 983ab0c2e0..5d829c88e7 100644 --- a/libheif/codecs/avc_boxes.h +++ b/libheif/codecs/avc_boxes.h @@ -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;