Skip to content
Snippets Groups Projects
utils.c 27.9 KiB
Newer Older
  • Learn to ignore specific revisions
  • int avcodec_thread_init(AVCodecContext *s, int thread_count){
        return -1;
    }
    #endif
    
    
    unsigned int av_xiphlacing(unsigned char *s, unsigned int v)
    {
        unsigned int n = 0;
    
        while(v >= 0xff) {
            *s++ = 0xff;
            v -= 0xff;
            n++;
        }
        *s = v;
        n++;
        return n;
    }