diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-12-29 02:26:12 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-12-29 02:26:12 +0300 |
commit | e4f1ec3a4c16544c067e3391dabfa9ae676dcb9a (patch) | |
tree | 673745861922cf70362b49b230bd32667f4780ae /libavcodec/h264_parser.c | |
parent | 7d204e67e8f991bfdfb6a6e91b6855b6c5a782c0 (diff) |
Explain the lack of +3/7
Originally committed as revision 16380 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r-- | libavcodec/h264_parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c index 62cd948595..ddb79a3094 100644 --- a/libavcodec/h264_parser.c +++ b/libavcodec/h264_parser.c @@ -45,6 +45,9 @@ int ff_h264_find_frame_end(H264Context *h, const uint8_t *buf, int buf_size) 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; |