aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Schreter <schreter@gmx.net>2009-02-08 21:22:18 +0000
committerRobert Swain <robert.swain@gmail.com>2009-02-08 21:22:18 +0000
commit4d8eb2e8994e72a4d3d074605d3ad9f9599b7242 (patch)
tree0e6506bce507c19ad775a2f1f5eae0525daa72a7
parentac76729c10a345bf065aa76131d5094fbe9150fb (diff)
downloadffmpeg-4d8eb2e8994e72a4d3d074605d3ad9f9599b7242.tar.gz
Fix a const related warning
Patch by Ivan Schreter ( schreter gmx net ) Originally committed as revision 17073 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h264_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index f754f71a2a..a04fd21d51 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -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