void av_log_default_callback(void *avcl, 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 = avcl ? *(AVClass **) avcl : NULL;

    int tint = av_clip(level >> 8, 0, 256);



    level &= 0xff;



    if (level > av_log_level)

        return;

    line[0] = 0;

    if (print_prefix && avc) {

        if (avc->parent_log_context_offset) {

            AVClass** parent = *(AVClass ***) (((uint8_t *) avcl) +

                                   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(avcl), avcl);

    }



    vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl);



    print_prefix = strlen(line) && 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), tint, line);

    av_strlcpy(prev, line, sizeof line);

}

void av_log_default_callback(void *avcl, 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 = avcl ? *(AVClass **) avcl : NULL;

    int tint = av_clip(level >> 8, 0, 256);



    level &= 0xff;



    if (level > av_log_level)

        return;

    line[0] = 0;

    if (print_prefix && avc) {

        if (avc->parent_log_context_offset) {

            AVClass** parent = *(AVClass ***) (((uint8_t *) avcl) +

                                   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(avcl), avcl);

    }



    vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl);



    print_prefix = strlen(line) && 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), tint, line);

    av_strlcpy(prev, line, sizeof line);

}

    int tint = av_clip(level >> 8, 0, 256);     colored_fputs(av_clip(level >> 3, 0, 6), tint, line);
void FUNC_0(void *VAR_0, int VAR_1, const char *VAR_2, va_list VAR_3)

{

    static int VAR_4 = 1;

    static int VAR_5;

    static char VAR_6[1024];

    char VAR_7[1024];

    static int VAR_8;

    AVClass* avc = VAR_0 ? *(AVClass **) VAR_0 : NULL;

    int VAR_9 = av_clip(VAR_1 >> 8, 0, 256);



    VAR_1 &= 0xff;



    if (VAR_1 > av_log_level)

        return;

    VAR_7[0] = 0;

    if (VAR_4 && avc) {

        if (avc->parent_log_context_offset) {

            AVClass** parent = *(AVClass ***) (((uint8_t *) VAR_0) +

                                   avc->parent_log_context_offset);

            if (parent && *parent) {

                snprintf(VAR_7, sizeof(VAR_7), "[%s @ %p] ",

                         (*parent)->item_name(parent), parent);

            }

        }

        snprintf(VAR_7 + strlen(VAR_7), sizeof(VAR_7) - strlen(VAR_7), "[%s @ %p] ",

                 avc->item_name(VAR_0), VAR_0);

    }



    vsnprintf(VAR_7 + strlen(VAR_7), sizeof(VAR_7) - strlen(VAR_7), VAR_2, VAR_3);



    VAR_4 = strlen(VAR_7) && VAR_7[strlen(VAR_7) - 1] == '\n';



#if HAVE_ISATTY

    if (!VAR_8)

        VAR_8 = isatty(2) ? 1 : -1;

#endif



    if (VAR_4 && (flags & AV_LOG_SKIP_REPEATED) &&

        !strncmp(VAR_7, VAR_6, sizeof VAR_7)) {

        VAR_5++;

        if (VAR_8 == 1)

            fprintf(stderr, "    Last message repeated %d times\r", VAR_5);

        return;

    }

    if (VAR_5 > 0) {

        fprintf(stderr, "    Last message repeated %d times\n", VAR_5);

        VAR_5 = 0;

    }

    colored_fputs(av_clip(VAR_1 >> 3, 0, 6), VAR_9, VAR_7);

    av_strlcpy(VAR_6, VAR_7, sizeof VAR_7);

}

void FUNC_0(void *VAR_0, int VAR_1, const char *VAR_2, va_list VAR_3)
{ static int VAR_4 = 1; static int VAR_5; static char VAR_6[1024]; char VAR_7[1024]; static int VAR_8; AVClass* avc = VAR_0 ? *(AVClass **) VAR_0 : NULL; int VAR_9 = av_clip(VAR_1 >> 8, 0, 256); VAR_1 &= 0xff; if (VAR_1 > av_log_level)
return; VAR_7[0] = 0; if (VAR_4 && avc) { if (avc->parent_log_context_offset) { AVClass** parent = *(AVClass ***) (((uint8_t *) VAR_0) +
avc->parent_log_context_offset); if (parent && *parent) { snprintf(VAR_7, sizeof(VAR_7), "[%s @ %p] ",
(*parent)->item_name(parent), parent); } } snprintf(VAR_7 + strlen(VAR_7), sizeof(VAR_7) - strlen(VAR_7), "[%s @ %p] ",
avc->item_name(VAR_0), VAR_0); } vsnprintf(VAR_7 + strlen(VAR_7), sizeof(VAR_7) - strlen(VAR_7), VAR_2, VAR_3); VAR_4 = strlen(VAR_7) && VAR_7[strlen(VAR_7) - 1] == '\n'; #if HAVE_ISATTY
if (!VAR_8)
VAR_8 = isatty(2) ? 1 : -1; #endif
if (VAR_4 && (flags & AV_LOG_SKIP_REPEATED) &&
!strncmp(VAR_7, VAR_6, sizeof VAR_7)) { VAR_5++; if (VAR_8 == 1)
fprintf(stderr, "    Last message repeated %d times\r", VAR_5); return; } if (VAR_5 > 0) { fprintf(stderr, "    Last message repeated %d times\n", VAR_5); VAR_5 = 0; } colored_fputs(av_clip(VAR_1 >> 3, 0, 6), VAR_9, VAR_7); av_strlcpy(VAR_6, VAR_7, sizeof VAR_7); }