Mercurial > mplayer.hg
changeset 30298:c37405b37538
Add a const qualifier in a cast, fix the gcc warning:
swscale.c: In function ¡ÆplanarCopy¡Ç:
swscale.c:2256: warning: cast discards qualifiers from pointer target type
author | stefano |
---|---|
date | Sun, 17 Jan 2010 00:21:50 +0000 |
parents | 111076138c5e |
children | e054adfb8849 |
files | libswscale/swscale.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale.c Sat Jan 16 23:22:43 2010 +0000 +++ b/libswscale/swscale.c Sun Jan 17 00:21:50 2010 +0000 @@ -2253,7 +2253,7 @@ for (i=0; i<height; i++) { for (j=0; j<length; j++) - ((uint16_t*)dstPtr)[j] = bswap_16(((uint16_t*)srcPtr)[j]); + ((uint16_t*)dstPtr)[j] = bswap_16(((const uint16_t*)srcPtr)[j]); srcPtr+= srcStride[plane]; dstPtr+= dstStride[plane]; }