vcpkg/ports/libavif/fix-compiler-warnings.patch
JonLiu1993 2acace3be1
[libavif] update to v0.10.1 (#25510)
* [libavif] update to v0.10.1

* update evrsion
2022-07-05 14:59:22 -07:00

23 lines
1.1 KiB
Diff

diff --git a/src/read.c b/src/read.c
index 8d39b07..6289fa4 100644
--- a/src/read.c
+++ b/src/read.c
@@ -940,7 +940,7 @@ static avifResult avifDecoderItemMaxExtent(const avifDecoderItem * item, const a
return AVIF_RESULT_BMFF_PARSE_FAILED;
}
startOffset += remainingOffset;
- extentSize -= remainingOffset;
+ extentSize -= (size_t)remainingOffset;
remainingOffset = 0;
}
}
@@ -3085,7 +3085,7 @@ static avifResult avifDecoderPrepareSample(avifDecoder * decoder, avifDecodeSamp
avifDecoderItem * item = avifMetaFindItem(decoder->data->meta, sample->itemID);
avifROData itemContents;
- avifResult readResult = avifDecoderItemRead(item, decoder->io, &itemContents, sample->offset, bytesToRead, &decoder->diag);
+ avifResult readResult = avifDecoderItemRead(item, decoder->io, &itemContents, (size_t)sample->offset, bytesToRead, &decoder->diag);
if (readResult != AVIF_RESULT_OK) {
return readResult;
}