1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Fix misplaced const, avoids a cast-discards-qualifiers warning

Originally committed as revision 12146 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger 2008-02-19 16:18:17 +00:00
parent d937cd0ed2
commit 591de5cf35

View File

@ -31,7 +31,7 @@ const uint8_t *ff_avc_find_startcode(const uint8_t *p, const uint8_t *end)
} }
for( end -= 3; p < end; p += 4 ) { for( end -= 3; p < end; p += 4 ) {
const uint32_t x = *(uint32_t*)p; uint32_t x = *(const uint32_t*)p;
// if( (x - 0x01000100) & (~x) & 0x80008000 ) // little endian // if( (x - 0x01000100) & (~x) & 0x80008000 ) // little endian
// if( (x - 0x00010001) & (~x) & 0x00800080 ) // big endian // if( (x - 0x00010001) & (~x) & 0x00800080 ) // big endian
if( (x - 0x01010101) & (~x) & 0x80808080 ) { // generic if( (x - 0x01010101) & (~x) & 0x80808080 ) { // generic