vcpkg/ports/libavif/fix-compiler-warnings.patch
MonicaLiu c5a9aa4028
[libavif] Update to v0.11.1. (#29315)
* update libavif

* update version

* update patch

* update version

* update EOF

* update version

* update patch

* update version

---------

Co-authored-by: MonicaLiu <v-liumonica@microsoft.com>
2023-02-23 11:21:03 -08:00

23 lines
1.1 KiB
Diff

diff --git a/src/read.c b/src/read.c
index e45db4e..0ddb05a 100644
--- a/src/read.c
+++ b/src/read.c
@@ -945,7 +945,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;
}
}
@@ -3147,7 +3147,7 @@ static avifResult avifDecoderPrepareSample(avifDecoder * decoder, avifDecodeSamp
if ((decoder->io->sizeHint > 0) && (sample->offset > decoder->io->sizeHint)) {
return AVIF_RESULT_BMFF_PARSE_FAILED;
}
- avifResult readResult = decoder->io->read(decoder->io, 0, sample->offset, bytesToRead, &sampleContents);
+ avifResult readResult = decoder->io->read(decoder->io, 0, (size_t)sample->offset, bytesToRead, &sampleContents);
if (readResult != AVIF_RESULT_OK) {
return readResult;
}