Skip to content

Commit

Permalink
sws: fix warning: cast from pointer to integer of different size
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Dec 29, 2012
1 parent 3cd137b commit c77eb4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libswscale/swscale.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@ static int swScale(SwsContext *c, const uint8_t *src[],
}
}

if ((int)dst[0]%16 || (int)dst[1]%16 || (int)dst[2]%16 || (int)src[0]%16 || (int)src[1]%16 || (int)src[2]%16
if ( (uintptr_t)dst[0]%16 || (uintptr_t)dst[1]%16 || (uintptr_t)dst[2]%16
|| (uintptr_t)src[0]%16 || (uintptr_t)src[1]%16 || (uintptr_t)src[2]%16
|| dstStride[0]%16 || dstStride[1]%16 || dstStride[2]%16 || dstStride[3]%16
|| srcStride[0]%16 || srcStride[1]%16 || srcStride[2]%16 || srcStride[3]%16
) {
Expand Down

0 comments on commit c77eb4e

Please sign in to comment.