diff --git a/libheif/plugins/encoder_aom.cc b/libheif/plugins/encoder_aom.cc index f66752a6e6..c4f0311b8b 100644 --- a/libheif/plugins/encoder_aom.cc +++ b/libheif/plugins/encoder_aom.cc @@ -1037,6 +1037,11 @@ struct heif_error aom_encode_image(void* encoder_raw, const struct heif_image* i } #endif +#if defined(AOM_CTRL_AV1E_SET_ENABLE_INTRABC) + // Always disable the IntraBC mode, as it's too slow. + aom_codec_control(&codec, AV1E_SET_ENABLE_INTRABC, 0); +#endif + #if defined(HAVE_AOM_CODEC_SET_OPTION) // Apply the custom AOM encoder options. // These should always be applied last as they can override the values that were set above.