Mercurial > libavcodec.hg
comparison h264_parser.c @ 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 | e9d9d946f213 |
children | 1c69c50d78f1 |
comparison
equal
deleted
inserted
replaced
8762:4f1567ce75c4 | 8763:8551f8149146 |
---|---|
47 #if HAVE_FAST_UNALIGNED | 47 #if HAVE_FAST_UNALIGNED |
48 /* we check i<buf_size instead of i+3/7 because its simpler | 48 /* we check i<buf_size instead of i+3/7 because its simpler |
49 * and there should be FF_INPUT_BUFFER_PADDING_SIZE bytes at the end | 49 * and there should be FF_INPUT_BUFFER_PADDING_SIZE bytes at the end |
50 */ | 50 */ |
51 # if HAVE_FAST_64BIT | 51 # if HAVE_FAST_64BIT |
52 while(i<buf_size && !((~*(uint64_t*)(buf+i) & (*(uint64_t*)(buf+i) - 0x0101010101010101ULL)) & 0x8080808080808080ULL)) | 52 while(i<buf_size && !((~*(const uint64_t*)(buf+i) & (*(const uint64_t*)(buf+i) - 0x0101010101010101ULL)) & 0x8080808080808080ULL)) |
53 i+=8; | 53 i+=8; |
54 # else | 54 # else |
55 while(i<buf_size && !((~*(uint32_t*)(buf+i) & (*(uint32_t*)(buf+i) - 0x01010101U)) & 0x80808080U)) | 55 while(i<buf_size && !((~*(const uint32_t*)(buf+i) & (*(const uint32_t*)(buf+i) - 0x01010101U)) & 0x80808080U)) |
56 i+=4; | 56 i+=4; |
57 # endif | 57 # endif |
58 #endif | 58 #endif |
59 for(; i<buf_size; i++){ | 59 for(; i<buf_size; i++){ |
60 if(!buf[i]){ | 60 if(!buf[i]){ |