From 0020008c23cb3e221bbd27e224da9410c153b6dc Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Wed, 31 Aug 2022 14:18:26 +0200 Subject: [PATCH] fix chroma plane height for alpha image in rav1e encoder plugin (#554) --- libheif/heif_encoder_rav1e.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libheif/heif_encoder_rav1e.cc b/libheif/heif_encoder_rav1e.cc index ed7befd3f8..5d4370bc6d 100644 --- a/libheif/heif_encoder_rav1e.cc +++ b/libheif/heif_encoder_rav1e.cc @@ -521,6 +521,7 @@ struct heif_error rav1e_encode_image(void* encoder_raw, const struct heif_image* if (input_class == heif_image_input_class_alpha) { chromaSampling = RA_CHROMA_SAMPLING_CS420; // I can't seem to get RA_CHROMA_SAMPLING_CS400 to work right now, unfortunately chromaPosition = RA_CHROMA_SAMPLE_POSITION_UNKNOWN; // TODO: set to CENTER when AV1 and rav1e supports this + yShift = 1; } else { switch (chroma) {