static void old_print_object_header(const char *name)
{
    char *str, *p;
    if (!strcmp(name, "tags"))
        return;
    str = p = av_strdup(name);
    if (!str)
        return;
    while (*p) {
        *p = av_toupper(*p);
        p++;
    }
    avio_printf(probe_out, "[%s]\n", str);
    av_freep(&str);
}
['static void old_print_object_header(const char *name)\n{\n    char *str, *p;\n    if (!strcmp(name, "tags"))\n        return;\n    str = p = av_strdup(name);\n    if (!str)\n        return;\n    while (*p) {\n        *p = av_toupper(*p);\n        p++;\n    }\n    avio_printf(probe_out, "[%s]\\n", str);\n    av_freep(&str);\n}', 'char *av_strdup(const char *s)\n{\n    char *ptr = NULL;\n    if (s) {\n        int len = strlen(s) + 1;\n        ptr = av_realloc(NULL, len);\n        if (ptr)\n            memcpy(ptr, s, len);\n    }\n    return ptr;\n}', 'void *av_realloc(void *ptr, size_t size)\n{\n#if CONFIG_MEMALIGN_HACK\n    int diff;\n#endif\n    if (size > (INT_MAX - 16))\n        return NULL;\n#if CONFIG_MEMALIGN_HACK\n    if (!ptr)\n        return av_malloc(size);\n    diff = ((char *)ptr)[-1];\n    return (char *)realloc((char *)ptr - diff, size + diff) + diff;\n#elif HAVE_ALIGNED_MALLOC\n    return _aligned_realloc(ptr, size, 32);\n#else\n    return realloc(ptr, size);\n#endif\n}', "static inline av_const int av_toupper(int c)\n{\n    if (c >= 'a' && c <= 'z')\n        c ^= 0x20;\n    return c;\n}", 'int avio_printf(AVIOContext *s, const char *fmt, ...)\n{\n    va_list ap;\n    char buf[4096];\n    int ret;\n    va_start(ap, fmt);\n    ret = vsnprintf(buf, sizeof(buf), fmt, ap);\n    va_end(ap);\n    avio_write(s, buf, strlen(buf));\n    return ret;\n}']