Mercurial > libavcodec.hg
changeset 8987:bf9d9a79a737 libavcodec
Silence two warnings:
cast discards qualifiers from pointer target type
Patch by Ivan Schreter, schreter gmx net
author | cehoyos |
---|---|
date | Thu, 19 Feb 2009 23:01:13 +0000 |
parents | 4d5d7e08f1d3 |
children | 48c89edff557 |
files | h264.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Thu Feb 19 22:56:35 2009 +0000 +++ b/h264.c Thu Feb 19 23:01:13 2009 +0000 @@ -1385,11 +1385,11 @@ # if HAVE_FAST_64BIT # define RS 7 for(i=0; i+1<length; i+=9){ - if(!((~*(uint64_t*)(src+i) & (*(uint64_t*)(src+i) - 0x0100010001000101ULL)) & 0x8000800080008080ULL)) + if(!((~*(const uint64_t*)(src+i) & (*(const uint64_t*)(src+i) - 0x0100010001000101ULL)) & 0x8000800080008080ULL)) # else # define RS 3 for(i=0; i+1<length; i+=5){ - if(!((~*(uint32_t*)(src+i) & (*(uint32_t*)(src+i) - 0x01000101U)) & 0x80008080U)) + if(!((~*(const uint32_t*)(src+i) & (*(const uint32_t*)(src+i) - 0x01000101U)) & 0x80008080U)) # endif continue; if(i>0 && !src[i]) i--;