[FFmpeg-cvslog] r17073 - trunk/libavcodec/h264_parser.c

superdump subversion
Sun Feb 8 22:22:18 CET 2009


Author: superdump
Date: Sun Feb  8 22:22:18 2009
New Revision: 17073

Log:
Fix a const related warning

Patch by Ivan Schreter ( schreter gmx net )

Modified:
   trunk/libavcodec/h264_parser.c

Modified: trunk/libavcodec/h264_parser.c
==============================================================================
--- trunk/libavcodec/h264_parser.c	Sun Feb  8 22:19:04 2009	(r17072)
+++ trunk/libavcodec/h264_parser.c	Sun Feb  8 22:22:18 2009	(r17073)
@@ -49,10 +49,10 @@ int ff_h264_find_frame_end(H264Context *
          * 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




More information about the ffmpeg-cvslog mailing list