Patent attributes
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.