diff --git a/libheif/file.cc b/libheif/file.cc index da7f28a87aa..b15c778a6fc 100644 --- a/libheif/file.cc +++ b/libheif/file.cc @@ -758,12 +758,12 @@ Error HeifFile::get_compressed_image_data(heif_item_id ID, std::vector* if (item_type == "iden") { // we want to return the image data for the source image - heif_item_id from_ID; - Error error = get_source_image_id(ID, &from_ID); + heif_item_id to_ID; + Error error = get_source_image_id(ID, &to_ID); if (error) { return error; } - ID = from_ID; + ID = to_ID; } // --- get coded image data pointers