File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments