diff options
author | Ivan Schreter <schreter@gmx.net> | 2009-02-19 23:01:13 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-02-19 23:01:13 +0000 |
commit | 3878be318b297f7347eaadc0baba651d1e559dc3 (patch) | |
tree | cfd395639f2f9e838246c40ba9aca74e8f99c7a2 /libavcodec/h264.c | |
parent | 274aa1d02f12aba969b280139cf79907134dcd89 (diff) | |
download | ffmpeg-3878be318b297f7347eaadc0baba651d1e559dc3.tar.gz |
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
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 5cbe139154..08e215d6e3 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1385,11 +1385,11 @@ static const uint8_t *decode_nal(H264Context *h, const uint8_t *src, int *dst_le # 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--; |