libavutil/log.c:106: error: Integer Overflow L1
  (0 - 1):unsigned64.

libavutil/log.c:82:1: <LHS trace>
80. }
81. 
82. void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
    ^
83. {
84.     static int print_prefix=1;

libavutil/log.c:82:1: Array declaration
80. }
81. 
82. void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
    ^
83. {
84.     static int print_prefix=1;

libavutil/log.c:106:19: Binary operation: (0 - 1):unsigned64
104.     vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl);
105. 
106.     print_prefix= line[strlen(line)-1] == '\n';
                       ^
107. 
108. #if HAVE_ISATTY

void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)
{
    static int print_prefix=1;
    static int count;
    static char prev[1024];
    char line[1024];
    static int is_atty;
    AVClass* avc= ptr ? *(AVClass**)ptr : NULL;
    if(level>av_log_level)
        return;
    line[0]=0;
#undef fprintf
    if(print_prefix && avc) {
        if (avc->parent_log_context_offset) {
            AVClass** parent= *(AVClass***)(((uint8_t*)ptr) + avc->parent_log_context_offset);
            if(parent && *parent){
                snprintf(line, sizeof(line), "[%s @ %p] ", (*parent)->item_name(parent), parent);
            }
        }
        snprintf(line + strlen(line), sizeof(line) - strlen(line), "[%s @ %p] ", avc->item_name(ptr), ptr);
    }
    vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl);
    print_prefix= line[strlen(line)-1] == '\n';
#if HAVE_ISATTY
    if(!is_atty) is_atty= isatty(2) ? 1 : -1;
#endif
    if(print_prefix && (flags & AV_LOG_SKIP_REPEATED) && !strncmp(line, prev, sizeof line)){
        count++;
        if(is_atty==1)
            fprintf(stderr, "    Last message repeated %d times\r", count);
        return;
    }
    if(count>0){
        fprintf(stderr, "    Last message repeated %d times\n", count);
        count=0;
    }
    colored_fputs(av_clip(level>>3, 0, 6), line);
    strncpy(prev, line, sizeof line);
}
['void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl)\n{\n    static int print_prefix=1;\n    static int count;\n    static char prev[1024];\n    char line[1024];\n    static int is_atty;\n    AVClass* avc= ptr ? *(AVClass**)ptr : NULL;\n    if(level>av_log_level)\n        return;\n    line[0]=0;\n#undef fprintf\n    if(print_prefix && avc) {\n        if (avc->parent_log_context_offset) {\n            AVClass** parent= *(AVClass***)(((uint8_t*)ptr) + avc->parent_log_context_offset);\n            if(parent && *parent){\n                snprintf(line, sizeof(line), "[%s @ %p] ", (*parent)->item_name(parent), parent);\n            }\n        }\n        snprintf(line + strlen(line), sizeof(line) - strlen(line), "[%s @ %p] ", avc->item_name(ptr), ptr);\n    }\n    vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl);\n    print_prefix= line[strlen(line)-1] == \'\\n\';\n#if HAVE_ISATTY\n    if(!is_atty) is_atty= isatty(2) ? 1 : -1;\n#endif\n    if(print_prefix && (flags & AV_LOG_SKIP_REPEATED) && !strncmp(line, prev, sizeof line)){\n        count++;\n        if(is_atty==1)\n            fprintf(stderr, "    Last message repeated %d times\\r", count);\n        return;\n    }\n    if(count>0){\n        fprintf(stderr, "    Last message repeated %d times\\n", count);\n        count=0;\n    }\n    colored_fputs(av_clip(level>>3, 0, 6), line);\n    strncpy(prev, line, sizeof line);\n}']