Disocclusions and ghost contours are two typical artifacts in depth image-based rendering (DIBR). This paper explores a new view synthesis method to eliminate image artifacts. First, we combine depth discontinuities with virtual view location to divide the depth map into reliable regions and unreliable regions. Second, we use forward warping and inverse warping to deal with the two different regions respectively. Finally, a distance-depth-based inpainting algorithm is used to enhance the quality of the synthesized image. Both objective and subjective quality have been analyzed and the results were compared with the other three state-of-the-art view synthesis methods. It is indicated that the proposed view synthesis technique has notable advantages at artifacts elimination and PSNR improvement.