Patent 11128887 was granted and assigned to KT Corporation on September, 2021 by the United States Patent and Trademark Office.
According to the present invention, there is provided a method of decoding an image, the method including: deriving a spatial merge candidate of a current block; generating a first merge candidate list including the spatial merge candidate; obtaining motion information of the current block on the basis of the first merge candidate list; and performing motion compensation on the current block by using the motion information. Herein, when the number of merge candidates included in the first merge candidate list is smaller than the maximum number, at least one merge candidate included in a second merge candidate list is added to the first merge candidate list.