Handle av_realloc() failure