Skip to content

Commit

Permalink
Declare a avifDecoderData * input para as const
Browse files Browse the repository at this point in the history
Declare the `avifDecoderData * data` input parameter of
avifTilesCanBeDecodedWithSameCodecInstance() as const.
  • Loading branch information
wantehchang committed Jan 2, 2025
1 parent 3a48136 commit 21a8133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -4971,7 +4971,7 @@ static avifResult avifCodecCreateInternal(avifCodecChoice choice, const avifTile
return AVIF_RESULT_OK;
}

static avifBool avifTilesCanBeDecodedWithSameCodecInstance(avifDecoderData * data)
static avifBool avifTilesCanBeDecodedWithSameCodecInstance(const avifDecoderData * data)
{
int32_t numImageBuffers = 0, numStolenImageBuffers = 0;
for (int c = 0; c < AVIF_ITEM_CATEGORY_COUNT; ++c) {
Expand Down

0 comments on commit 21a8133

Please sign in to comment.