Mercurial > libavcodec.hg
comparison h264.c @ 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 | eaf39f9b25df |
children | ca768cb2bfb6 |
comparison
equal
deleted
inserted
replaced
8986:4d5d7e08f1d3 | 8987:bf9d9a79a737 |
---|---|
1383 | 1383 |
1384 #if HAVE_FAST_UNALIGNED | 1384 #if HAVE_FAST_UNALIGNED |
1385 # if HAVE_FAST_64BIT | 1385 # if HAVE_FAST_64BIT |
1386 # define RS 7 | 1386 # define RS 7 |
1387 for(i=0; i+1<length; i+=9){ | 1387 for(i=0; i+1<length; i+=9){ |
1388 if(!((~*(uint64_t*)(src+i) & (*(uint64_t*)(src+i) - 0x0100010001000101ULL)) & 0x8000800080008080ULL)) | 1388 if(!((~*(const uint64_t*)(src+i) & (*(const uint64_t*)(src+i) - 0x0100010001000101ULL)) & 0x8000800080008080ULL)) |
1389 # else | 1389 # else |
1390 # define RS 3 | 1390 # define RS 3 |
1391 for(i=0; i+1<length; i+=5){ | 1391 for(i=0; i+1<length; i+=5){ |
1392 if(!((~*(uint32_t*)(src+i) & (*(uint32_t*)(src+i) - 0x01000101U)) & 0x80008080U)) | 1392 if(!((~*(const uint32_t*)(src+i) & (*(const uint32_t*)(src+i) - 0x01000101U)) & 0x80008080U)) |
1393 # endif | 1393 # endif |
1394 continue; | 1394 continue; |
1395 if(i>0 && !src[i]) i--; | 1395 if(i>0 && !src[i]) i--; |
1396 while(src[i]) i++; | 1396 while(src[i]) i++; |
1397 #else | 1397 #else |