A method of coding a coding unit, CU, according to a merge candidate list, the method comprising: constructing a first list according to motion information of neighboring CUs of a current CU by adding merge candidates into the first list, and the motion information contains motion data, and the motion data includes the information whether one or two reference picture lists are used, as well as a reference index and a motion vector for each reference picture list, and wherein the first list is a merge candidate list; wherein the merge candidate list is constructed by including the following five types of candidates in order: 1) Spatial Motion Vector Predictors, MVPs, from spatial neighbor CUs 2) Temporal MVP from collocated CUs 3) History-based MVP defined as motion information from a previously coded CU from a first-in-first-out, FIFO, table 4) Pairwise average MVP generated by averaging predefined pairs of candidates in the merge candidate list 5) Zero MVs; obtaining prediction information of the current CU, wherein the prediction information is determined by a syntax element; when the prediction information of the current CU indicates that a sub-block prediction is applied to the current CU, wherein the sub-block prediction is a triangular prediction mode, wherein the triangular prediction mode is to divide the current CU into two triangular prediction units, in either diagonal or inverse diagonal direction; obtaining a uni-prediction candidate for the current CU according to a merge candidate in the first list; using, the uni-prediction candidate for the current CU to perform inter prediction of the current CU, wherein the constructing a first list further comprises: after checking whether a neighboring CU is available and contains the motion information, performing redundancy checks for the spatial MVPs before taking all the motion information of the neighboring CUs as the merge candidates in the first list, wherein said redundancy checks ensure that merge candidates with same motion information are excluded from the first list, and wherein pairwise redundancy checks are performed whereby left, top-right, and top-left CUs are compared to the top CU and bottom-left and top-left CUs are compared to the left CU. constructing a first list according to motion information of neighboring CUs of a current CU by adding merge candidates into the first list, and the motion information contains motion data, and the motion data includes the information whether one or two reference picture lists are used, as well as a reference index and a motion vector for each reference picture list, and wherein the first list is a merge candidate list; wherein the merge candidate list is constructed by including the following five types of candidates in order: 1) Spatial Motion Vector Predictors, MVPs, from spatial neighbor CUs 2) Temporal MVP from collocated CUs 3) History-based MVP defined as motion information from a previously coded CU from a first-in-first-out, FIFO, table 4) Pairwise average MVP generated by averaging predefined pairs of candidates in the merge candidate list 5) Zero MVs; 1) Spatial Motion Vector Predictors, MVPs, from spatial neighbor CUs 2) Temporal MVP from collocated CUs 3) History-based MVP defined as motion information from a previously coded CU from a first-in-first-out, FIFO, table 4) Pairwise average MVP generated by averaging predefined pairs of candidates in the merge candidate list 5) Zero MVs; obtaining prediction information of the current CU, wherein the prediction information is determined by a syntax element; when the prediction information of the current CU indicates that a sub-block prediction is applied to the current CU, wherein the sub-block prediction is a triangular prediction mode, wherein the triangular prediction mode is to divide the current CU into two triangular prediction units, in either diagonal or inverse diagonal direction; obtaining a uni-prediction candidate for the current CU according to a merge candidate in the first list; using, the uni-prediction candidate for the current CU to perform inter prediction of the current CU, wherein the constructing a first list further comprises: after checking whether a neighboring CU is available and contains the motion information, performing redundancy checks for the spatial MVPs before taking all the motion information of the neighboring CUs as the merge candidates in the first list, wherein said redundancy checks ensure that merge candidates with same motion information are excluded from the first list, and wherein pairwise redundancy checks are performed whereby left, top-right, and top-left CUs are compared to the top CU and bottom-left and top-left CUs are compared to the left CU.