Skip to content

Commit

Permalink
Bug fix: input class was incorrectly hard coded to nomal
Browse files Browse the repository at this point in the history
  • Loading branch information
DichenZhang1 authored Jan 26, 2024
1 parent a28d02f commit 7dabd1a
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 7dabd1a

Please sign in to comment.