void *av_realloc(void *ptr, unsigned int size)
{
#ifdef MEMALIGN_HACK
    //FIXME this isnt aligned correctly though it probably isnt needed
    int diff;
    if(!ptr) return av_malloc(size);
    diff= ((char*)ptr)[-1];
    return realloc(ptr - diff, size + diff) + diff;
#else
    return realloc(ptr, size);
#endif
}
void *av_realloc(void *ptr, unsigned int size)
{
#ifdef MEMALIGN_HACK
    
    int diff;
    if(!ptr) return av_malloc(size);
    diff= ((char*)ptr)[-1];
    return realloc(ptr - diff, size + diff) + diff;
#else
    return realloc(ptr, size);
#endif
}
void *FUNC_0(void *VAR_0, unsigned int VAR_1)
{
#ifdef MEMALIGN_HACK
    
    int diff;
    if(!VAR_0) return av_malloc(VAR_1);
    diff= ((char*)VAR_0)[-1];
    return realloc(VAR_0 - diff, VAR_1 + diff) + diff;
#else
    return realloc(VAR_0, VAR_1);
#endif
}
void *FUNC_0(void *VAR_0, unsigned int VAR_1)
{ #ifdef MEMALIGN_HACK
int diff; if(!VAR_0) return av_malloc(VAR_1); diff= ((char*)VAR_0)[-1]; return realloc(VAR_0 - diff, VAR_1 + diff) + diff; #else
return realloc(VAR_0, VAR_1); #endif
}