Commit ea5bd2aa authored by superdump's avatar superdump

Fix a const related warning

Patch by Ivan Schreter ( schreter gmx net )


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17073 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 83f24542
......@@ -49,10 +49,10 @@ int ff_h264_find_frame_end(H264Context *h, const uint8_t *buf, int buf_size)
* 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment