Skip to content

Commit

Permalink
Add assert(colorItem) in WriteFtypAndConi()
Browse files Browse the repository at this point in the history
  • Loading branch information
y-guyon committed Aug 19, 2023
1 parent 376b6b3 commit c497e89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c497e89

Please sign in to comment.