File tree Expand file tree Collapse file tree
libheif/codecs/uncompressed Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -989,13 +989,13 @@ Error fill_cmpd_and_uncC(std::shared_ptr<Box_cmpd>& cmpd,
989989
990990 int bpp = image->get_bits_per_pixel (heif_channel_Y);
991991 heif_uncompressed_component_format format = to_unc_component_format (image, heif_channel_Y);
992- Box_uncC::Component component0 = {0 , (uint8_t ) (bpp), format, 0 };
992+ Box_uncC::Component component0 = {0 , (uint8_t ) (bpp), ( uint8_t ) format, 0 };
993993 uncC->add_component (component0);
994994
995995 if (save_alpha_channel && image->has_channel (heif_channel_Alpha)) {
996996 heif_uncompressed_component_format format_alpha = to_unc_component_format (image, heif_channel_Alpha);
997997 bpp = image->get_bits_per_pixel (heif_channel_Alpha);
998- Box_uncC::Component component1 = {1 , (uint8_t ) (bpp), format_alpha, 0 };
998+ Box_uncC::Component component1 = {1 , (uint8_t ) (bpp), ( uint8_t ) format_alpha, 0 };
999999 uncC->add_component (component1);
10001000 }
10011001
You can’t perform that action at this time.
0 commit comments