1. A method of decoding video data, the method comprising: generating an initial version of a reference picture list; determining that a reference picture list modification (RPLM) syntax element is the last RPLM syntax element in an ordered set of one or more RPLM syntax elements when the RPLM syntax element has a particular value; and generating a final version of the reference picture list, wherein for each respective RPLM syntax element in the ordered set of RPLM syntax elements that does not have the particular value, the final version of the reference picture list includes, at an insertion position for the respective RPLM syntax element, a reference picture associated with the respective RPLM syntax element, wherein the respective RPLM syntax element indicates a position in the initial version of the reference picture list of the reference picture associated with the respective RPLM syntax element, and wherein the insertion position for the respective RPLM syntax element corresponds to a position in the ordered set of RPLM syntax elements of the respective RPLM syntax element.