diff --git a/libheif/plugins/encoder_svt.cc b/libheif/plugins/encoder_svt.cc index 0ec833e6f3..aef1e9e4d6 100644 --- a/libheif/plugins/encoder_svt.cc +++ b/libheif/plugins/encoder_svt.cc @@ -585,7 +585,7 @@ struct heif_error svt_encode_image(void* encoder_raw, const struct heif_image* i } const heif_chroma chroma = heif_image_get_chroma_format(image); - int bitdepth_y = heif_image_get_bits_per_pixel(image, heif_channel_Y); + int bitdepth_y = heif_image_get_bits_per_pixel_range(image, heif_channel_Y); uint8_t yShift = 0; EbColorFormat color_format = EB_YUV420;