Mercurial > libavcodec.hg
changeset 8763:8551f8149146 libavcodec
Fix a const related warning
Patch by Ivan Schreter ( schreter gmx net )
author | superdump |
---|---|
date | Sun, 08 Feb 2009 21:22:18 +0000 |
parents | 4f1567ce75c4 |
children | aa68b04560ba |
files | h264_parser.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/h264_parser.c Sun Feb 08 20:28:12 2009 +0000 +++ b/h264_parser.c Sun Feb 08 21:22:18 2009 +0000 @@ -49,10 +49,10 @@ * and there should be FF_INPUT_BUFFER_PADDING_SIZE bytes at the end */ # if HAVE_FAST_64BIT - while(i<buf_size && !((~*(uint64_t*)(buf+i) & (*(uint64_t*)(buf+i) - 0x0101010101010101ULL)) & 0x8080808080808080ULL)) + while(i<buf_size && !((~*(const uint64_t*)(buf+i) & (*(const uint64_t*)(buf+i) - 0x0101010101010101ULL)) & 0x8080808080808080ULL)) i+=8; # else - while(i<buf_size && !((~*(uint32_t*)(buf+i) & (*(uint32_t*)(buf+i) - 0x01010101U)) & 0x80808080U)) + while(i<buf_size && !((~*(const uint32_t*)(buf+i) & (*(const uint32_t*)(buf+i) - 0x01010101U)) & 0x80808080U)) i+=4; # endif #endif