An adaptive image inpainting algorithm based on CDD model is proposed. An adaptive coefficient is introduced to choose the right inpainting model for different curvatures. The coefficient adopts CDD model only for large curvatures,and use TV model for others. Thus the repair time of CDD model is greatly reduced. Another adaptive coefficient is introduced to choose the right diffusion way for different degrees of change. This coefficient adopts a more closing TV model in damage area edge which has large gradient,and use thermal diffusion equation in flat areas which has small gradient. Then better inpainting results can be achieved. Experiments show that the proposed algorithm has much faster inpainting speed and better inpainting results than CDD model.