static void format_line(void *ptr, int level, const char *fmt, va_list vl,

                        char part[3][512], int part_size, int *print_prefix, int type[2])

{

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

    part[0][0] = part[1][0] = part[2][0] = 0;

    if(type) type[0] = type[1] = AV_CLASS_CATEGORY_NA + 16;

    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(part[0], part_size, "[%s @ %p] ",

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

                if(type) type[0] = get_category(((uint8_t *) ptr) + avc->parent_log_context_offset);

            }

        }

        snprintf(part[1], part_size, "[%s @ %p] ",

                 avc->item_name(ptr), ptr);

        if(type) type[1] = get_category(ptr);

    }



    vsnprintf(part[2], part_size, fmt, vl);



    *print_prefix = strlen(part[2]) && part[2][strlen(part[2]) - 1] == '\n';

}

static void format_line(void *ptr, int level, const char *fmt, va_list vl,

                        char part[3][512], int part_size, int *print_prefix, int type[2])

{

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

    part[0][0] = part[1][0] = part[2][0] = 0;

    if(type) type[0] = type[1] = AV_CLASS_CATEGORY_NA + 16;

    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(part[0], part_size, "[%s @ %p] ",

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

                if(type) type[0] = get_category(((uint8_t *) ptr) + avc->parent_log_context_offset);

            }

        }

        snprintf(part[1], part_size, "[%s @ %p] ",

                 avc->item_name(ptr), ptr);

        if(type) type[1] = get_category(ptr);

    }



    vsnprintf(part[2], part_size, fmt, vl);



    *print_prefix = strlen(part[2]) && part[2][strlen(part[2]) - 1] == '\n';

}

                        char part[3][512], int part_size, int *print_prefix, int type[2])
static void FUNC_0(void *VAR_0, int VAR_1, const char *VAR_2, va_list VAR_3,

                        char VAR_4[3][512], int VAR_5, int *VAR_6, int VAR_7[2])

{

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

    VAR_4[0][0] = VAR_4[1][0] = VAR_4[2][0] = 0;

    if(VAR_7) VAR_7[0] = VAR_7[1] = AV_CLASS_CATEGORY_NA + 16;

    if (*VAR_6 && avc) {

        if (avc->parent_log_context_offset) {

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

                                   avc->parent_log_context_offset);

            if (parent && *parent) {

                snprintf(VAR_4[0], VAR_5, "[%s @ %p] ",

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

                if(VAR_7) VAR_7[0] = get_category(((uint8_t *) VAR_0) + avc->parent_log_context_offset);

            }

        }

        snprintf(VAR_4[1], VAR_5, "[%s @ %p] ",

                 avc->item_name(VAR_0), VAR_0);

        if(VAR_7) VAR_7[1] = get_category(VAR_0);

    }



    vsnprintf(VAR_4[2], VAR_5, VAR_2, VAR_3);



    *VAR_6 = strlen(VAR_4[2]) && VAR_4[2][strlen(VAR_4[2]) - 1] == '\n';

}

static void FUNC_0(void *VAR_0, int VAR_1, const char *VAR_2, va_list VAR_3,
char VAR_4[3][512], int VAR_5, int *VAR_6, int VAR_7[2])
{ AVClass* avc = VAR_0 ? *(AVClass **) VAR_0 : NULL; VAR_4[0][0] = VAR_4[1][0] = VAR_4[2][0] = 0; if(VAR_7) VAR_7[0] = VAR_7[1] = AV_CLASS_CATEGORY_NA + 16; if (*VAR_6 && avc) { if (avc->parent_log_context_offset) { AVClass** parent = *(AVClass ***) (((uint8_t *) VAR_0) +
avc->parent_log_context_offset); if (parent && *parent) { snprintf(VAR_4[0], VAR_5, "[%s @ %p] ",
(*parent)->item_name(parent), parent); if(VAR_7) VAR_7[0] = get_category(((uint8_t *) VAR_0) + avc->parent_log_context_offset); } } snprintf(VAR_4[1], VAR_5, "[%s @ %p] ",
avc->item_name(VAR_0), VAR_0); if(VAR_7) VAR_7[1] = get_category(VAR_0); } vsnprintf(VAR_4[2], VAR_5, VAR_2, VAR_3); *VAR_6 = strlen(VAR_4[2]) && VAR_4[2][strlen(VAR_4[2]) - 1] == '\n'; }