Revision 3fe1ec39 libavutil/log.c

View differences:

libavutil/log.c
89 89

  
90 90
void av_log(void* avcl, int level, const char *fmt, ...)
91 91
{
92
    AVClass* avc= avcl ? *(AVClass**)avcl : NULL;
92 93
    va_list vl;
93 94
    va_start(vl, fmt);
95
    if(avc && avc->version >= (50<<16 | 15<<8 | 2) && avc->log_level_offset_offset && level>=AV_LOG_FATAL)
96
        level += *(int*)(((uint8_t*)avcl) + avc->log_level_offset_offset);
94 97
    av_vlog(avcl, level, fmt, vl);
95 98
    va_end(vl);
96 99
}

Also available in: Unified diff