We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77ceeb0 commit c324f73Copy full SHA for c324f73
libheif/codecs/uncompressed_image.cc
@@ -325,9 +325,16 @@ int UncompressedImageCodec::get_luma_bits_per_pixel_from_configuration_unci(cons
325
std::shared_ptr<Box_uncC> uncC_box = std::dynamic_pointer_cast<Box_uncC>(box1);
326
auto box2 = ipco->get_property_for_item_ID(imageID, ipma, fourcc("cmpd"));
327
std::shared_ptr<Box_cmpd> cmpd_box = std::dynamic_pointer_cast<Box_cmpd>(box2);
328
- if (!uncC_box || !cmpd_box) {
+ if (!uncC_box) {
329
return -1;
330
}
331
+ if (!cmpd_box) {
332
+ if (isKnownUncompressedFrameConfigurationBoxProfile(uncC_box)) {
333
+ return 8;
334
+ } else {
335
+ return -1;
336
+ }
337
338
339
int luma_bits = 0;
340
int alternate_channel_bits = 0;
0 commit comments