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

michael subversion
Mon Dec 29 00:26:13 CET 2008


Author: michael
Date: Mon Dec 29 00:26:12 2008
New Revision: 16380

Log:
Explain the lack of +3/7

Modified:
   trunk/libavcodec/h264_parser.c

Modified: trunk/libavcodec/h264_parser.c
==============================================================================
--- trunk/libavcodec/h264_parser.c	Mon Dec 29 00:25:17 2008	(r16379)
+++ trunk/libavcodec/h264_parser.c	Mon Dec 29 00:26:12 2008	(r16380)
@@ -45,6 +45,9 @@ int ff_h264_find_frame_end(H264Context *
     for(i=0; i<buf_size; i++){
         if(state==7){
 #ifdef HAVE_FAST_UNALIGNED
+        /* we check i<buf_size instead of i+3/7 because its simpler
+         * and there should be FF_INPUT_BUFFER_PADDING_SIZE bytes at the end
+         */
 #    ifdef HAVE_FAST_64BIT
             while(i<buf_size && !((~*(uint64_t*)(buf+i) & (*(uint64_t*)(buf+i) - 0x0101010101010101ULL)) & 0x8080808080808080ULL))
                 i+=8;




More information about the ffmpeg-cvslog mailing list