diff --git a/SDWebImageAVIFCoder/Classes/Conversion.m b/SDWebImageAVIFCoder/Classes/Conversion.m index 7b470c3..9cc0f7a 100644 --- a/SDWebImageAVIFCoder/Classes/Conversion.m +++ b/SDWebImageAVIFCoder/Classes/Conversion.m @@ -186,7 +186,7 @@ static CGImageRef CreateCGImage8(avifImage * avif) { vImage_YpCbCrToARGB convInfo = {0}; - resultBufferData = calloc(components * rowBytes * avif->height, sizeof(uint8_t)); + resultBufferData = calloc(rowBytes * avif->height, sizeof(uint8_t)); if(resultBufferData == NULL) { goto end_all; }