From d2852597c575cad62a65ed6edeeb8f5a36077add Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 16 Feb 2021 18:35:25 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/3258 --- coders/heic.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/coders/heic.c b/coders/heic.c index 048c980c77..7e0585aca8 100644 --- a/coders/heic.c +++ b/coders/heic.c @@ -650,8 +650,11 @@ static MagickBooleanType WriteHEICImage(const ImageInfo *image_info, */ #if LIBHEIF_NUMERIC_VERSION > 0x01060200 if (LocaleCompare(image_info->magick,"AVIF") == 0) - error=heif_context_get_encoder_for_format(heif_context, - heif_compression_AV1,&heif_encoder); + { + error=heif_context_get_encoder_for_format(heif_context, + heif_compression_AV1,&heif_encoder); + (void) CopyMagickString(image->magick,"AVIF",MagickPathExtent); + } else #endif error=heif_context_get_encoder_for_format(heif_context,