Logo Search packages:      
Sourcecode: blender version File versions  Download package

void* av_realloc_static ( void *  ptr,
unsigned int  size 
)

same as above, but does realloc

Definition at line 125 of file utils.c.

References av_mallocz_static(), av_realloc(), and av_realloc_static().

Referenced by av_realloc_static().

{
    int i;
    if(!ptr)
      return av_mallocz_static(size);
    /* Look for the old ptr */
    for(i = 0; i < last_static; i++) {
        if(array_static[i] == ptr) {
            array_static[i] = av_realloc(array_static[i], size);
            return array_static[i];
        }
    }
    return NULL;

}


Generated by  Doxygen 1.6.0   Back to index