Skip to content

Commit

Permalink
Merge pull request #1118 from DichenZhang1/patch-1
Browse files Browse the repository at this point in the history
Bug fix: input class was incorrectly hard coded to nomal
  • Loading branch information
farindk committed Apr 16, 2024
2 parents 3c53869 + 7dabd1a commit 9ea417c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libheif/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2255,7 +2255,7 @@ Error HeifContext::encode_image(const std::shared_ptr<HeifPixelImage>& pixel_ima
error = encode_image_as_hevc(pixel_image,
encoder,
options,
heif_image_input_class_normal,
input_class,
out_image);
}
break;
Expand All @@ -2264,15 +2264,15 @@ Error HeifContext::encode_image(const std::shared_ptr<HeifPixelImage>& pixel_ima
error = encode_image_as_av1(pixel_image,
encoder,
options,
heif_image_input_class_normal,
input_class,
out_image);
}
break;
case heif_compression_JPEG2000: {
error = encode_image_as_jpeg2000(pixel_image,
encoder,
options,
heif_image_input_class_normal,
input_class,
out_image);
}
break;
Expand All @@ -2281,7 +2281,7 @@ Error HeifContext::encode_image(const std::shared_ptr<HeifPixelImage>& pixel_ima
error = encode_image_as_jpeg(pixel_image,
encoder,
options,
heif_image_input_class_normal,
input_class,
out_image);
}
break;
Expand All @@ -2290,7 +2290,7 @@ Error HeifContext::encode_image(const std::shared_ptr<HeifPixelImage>& pixel_ima
error = encode_image_as_uncompressed(pixel_image,
encoder,
options,
heif_image_input_class_normal,
input_class,
out_image);
}
break;
Expand All @@ -2299,7 +2299,7 @@ Error HeifContext::encode_image(const std::shared_ptr<HeifPixelImage>& pixel_ima
error = encode_image_as_mask(pixel_image,
encoder,
options,
heif_image_input_class_normal,
input_class,
out_image);
}
break;
Expand Down

0 comments on commit 9ea417c

Please sign in to comment.