From c497e8935a5d073d98d34c8754604d82533294f0 Mon Sep 17 00:00:00 2001 From: Yannis Guyon Date: Thu, 17 Aug 2023 21:26:05 +0200 Subject: [PATCH] Add assert(colorItem) in WriteFtypAndConi() --- src/write.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/write.c b/src/write.c index 535f5c6559..5b8617e42f 100644 --- a/src/write.c +++ b/src/write.c @@ -1666,6 +1666,7 @@ static avifResult avifEncoderWriteFileTypeBoxAndCondensedImageBox(avifEncoder * } } + assert(colorItem); const avifRWData * colorData = &colorItem->encodeOutput->samples.sample[0].data; const avifRWData * alphaData = alphaItem ? &alphaItem->encodeOutput->samples.sample[0].data : NULL;