Revision 5cb5023c libavcodec/h264_parser.c

View differences:

libavcodec/h264_parser.c
44 44

  
45 45
    for(i=0; i<buf_size; i++){
46 46
        if(state==7){
47
#ifdef HAVE_FAST_UNALIGNED
48
#    ifdef HAVE_FAST_64BIT
49
            while(i<buf_size && !((~*(uint64_t*)(buf+i) & (*(uint64_t*)(buf+i) - 0x0101010101010101ULL)) & 0x8080808080808080ULL))
50
                i+=8;
51
#    else
52
            while(i<buf_size && !((~*(uint32_t*)(buf+i) & (*(uint32_t*)(buf+i) - 0x01010101U)) & 0x80808080U))
53
                i+=4;
54
#    endif
55
#endif
47 56
            for(; i<buf_size; i++){
48 57
                if(!buf[i]){
49 58
                    state=2;

Also available in: Unified diff