Revision 9d82b0dd libavutil/common.h

View differences:

libavutil/common.h
503 503
            level= (level^mask)-mask;
504 504
#endif
505 505

  
506
#define GET_UTF8(val, GET_BYTE, ERROR)\
507
    val= GET_BYTE;\
508
    {\
509
        int ones= 7 - av_log2(val ^ 255);\
510
        if(ones==1)\
511
            ERROR\
512
        val&= 127>>ones;\
513
        while(--ones > 0){\
514
            int tmp= GET_BYTE - 128;\
515
            if(tmp>>6)\
516
                ERROR\
517
            val= (val<<6) + tmp;\
518
        }\
519
    }
506 520

  
507 521
#if __CPU__ >= 686 && !defined(RUNTIME_CPUDETECT)
508 522
#define COPY3_IF_LT(x,y,a,b,c,d)\

Also available in: Unified diff