Commit 3878be31 authored by Ivan Schreter's avatar Ivan Schreter Committed by Carl Eugen Hoyos

Silence two warnings:

cast discards qualifiers from pointer target type

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17463 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 274aa1d0
...@@ -1385,11 +1385,11 @@ static const uint8_t *decode_nal(H264Context *h, const uint8_t *src, int *dst_le ...@@ -1385,11 +1385,11 @@ static const uint8_t *decode_nal(H264Context *h, const uint8_t *src, int *dst_le
# if HAVE_FAST_64BIT # if HAVE_FAST_64BIT
# define RS 7 # define RS 7
for(i=0; i+1<length; i+=9){ 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 # else
# define RS 3 # define RS 3
for(i=0; i+1<length; i+=5){ 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 # endif
continue; continue;
if(i>0 && !src[i]) i--; if(i>0 && !src[i]) i--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment