Skip to content

Commit 1fa6efb

Browse files
committed
uint64_t as size_t
1 parent aa048aa commit 1fa6efb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/reformat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,10 +683,10 @@ static avifResult avifImageYUVAnyToRGBAnySlow(const avifImage * image,
683683
for (uint32_t j = 0; j < image->height; ++j) {
684684
// uvJ is used only when yuvHasColor is true.
685685
const uint32_t uvJ = yuvHasColor ? (j >> state->yuv.formatInfo.chromaShiftY) : 0;
686-
const uint8_t * ptrY8 = &yPlane[(size_t)j * yRowBytes];
687-
const uint8_t * ptrU8 = uPlane ? &uPlane[(size_t)uvJ * uRowBytes] : NULL;
688-
const uint8_t * ptrV8 = vPlane ? &vPlane[(size_t)uvJ * vRowBytes] : NULL;
689-
const uint8_t * ptrA8 = aPlane ? &aPlane[(size_t)j * aRowBytes] : NULL;
686+
const uint8_t * ptrY8 = &yPlane[(uint64_t)j * yRowBytes];
687+
const uint8_t * ptrU8 = uPlane ? &uPlane[(uint64_t)uvJ * uRowBytes] : NULL;
688+
const uint8_t * ptrV8 = vPlane ? &vPlane[(uint64_t)uvJ * vRowBytes] : NULL;
689+
const uint8_t * ptrA8 = aPlane ? &aPlane[(uint64_t)j * aRowBytes] : NULL;
690690
const uint16_t * ptrY16 = (const uint16_t *)ptrY8;
691691
const uint16_t * ptrU16 = (const uint16_t *)ptrU8;
692692
const uint16_t * ptrV16 = (const uint16_t *)ptrV8;

0 commit comments

Comments
 (0)