Skip to content
Snippets Groups Projects
utils.c 28.3 KiB
Newer Older
  • Learn to ignore specific revisions
  • void av_log_set_callback(void (*callback)(void*, int, const char*, va_list))
    
    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;
    }