A video decoding method comprising: generating a merge candidate list for a current block; specifying one candidate among a plurality of merge candidates included in the merge candidate list; deriving a first affine seed vector (sv0) and a second affine seed vector (sv1) of the current block based on a first affine seed vector (nv0) and a second affine seed vector (nv1) of the one specified merge candidate; deriving an affine vector for a subblock in the current block by using the first affine seed vector (sv0) and the second affine seed vector (sv1) of the current block, wherein the subblock is a region of a size smaller than that of the current block; and performing a motion compensation prediction for the subblock based on the affine vector, wherein the first affine seed vector (nv0) and the second affine seed vector (nv1) of the merge candidate are derived based on motion information of a neighboring block adjacent to the current block, wherein the neighboring block is included in a coding tree unit different from a coding tree unit of the current block, the first affine seed vector (nv0) and the second affine seed vector (nv1) of the merge candidate are derived based on motion vectors of a bottom-left subblock and a bottom-right subblock of the neighboring block, characterized in that the bottom-left subblock includes a bottom-left affine reference sample control point (xn4, yn4) positioned at a bottom-left corner of the neighboring block, and the bottom-right subblock adjoins a bottom-right affine reference sample control point (xn5, yn5) located at a right side of a bottom-right sample of the bottom-right subblock. generating a merge candidate list for a current block; specifying one candidate among a plurality of merge candidates included in the merge candidate list; deriving a first affine seed vector (sv0) and a second affine seed vector (sv1) of the current block based on a first affine seed vector (nv0) and a second affine seed vector (nv1) of the one specified merge candidate; deriving an affine vector for a subblock in the current block by using the first affine seed vector (sv0) and the second affine seed vector (sv1) of the current block, wherein the subblock is a region of a size smaller than that of the current block; and performing a motion compensation prediction for the subblock based on the affine vector, wherein the first affine seed vector (nv0) and the second affine seed vector (nv1) of the merge candidate are derived based on motion information of a neighboring block adjacent to the current block, wherein the neighboring block is included in a coding tree unit different from a coding tree unit of the current block, the first affine seed vector (nv0) and the second affine seed vector (nv1) of the merge candidate are derived based on motion vectors of a bottom-left subblock and a bottom-right subblock of the neighboring block, characterized in that the bottom-left subblock includes a bottom-left affine reference sample control point (xn4, yn4) positioned at a bottom-left corner of the neighboring block, and the bottom-right subblock adjoins a bottom-right affine reference sample control point (xn5, yn5) located at a right side of a bottom-right sample of the bottom-right subblock. <EOS>