A method of decoding video data, the method comprising: determining a palette for decoding a block of video data based on information received in a bitstream, wherein the palette includes one or more palette entries each having a respective palette index; determining a first plurality of palette indices with which a first plurality of pixels of the block of video data are associated based on information received in the bitstream; determining a palette-based coding mode with which a second plurality of pixels of the block of video data is to be decoded based on information received in the bitstream, the palette-based coding mode being a copy-from-previous-rows palette coding mode; determining, using the copy-from-previous-rows palette coding mode, a second plurality of palette indices with which the second plurality of pixels of the block of video data are associated based on the first plurality of palette indices, wherein determining the second plurality of palette indices using the copy-from-previous-rows palette coding mode comprises: determining a reference pixel associated with a reference palette index included in the first plurality of palette indices based on information received in the bitstream, the information received in the bitstream including a syntax element indicative of the row of pixels within which the reference pixel is located, wherein the reference pixel associated with the reference palette index is spaced at least one line from an initial pixel associated with an initial index of the second plurality of palette indices such that the reference pixel associated with the reference palette index is positioned at least two lines above the initial pixel associated with the initial index of the second plurality of palette indices; determining a run length of a run of the first plurality of indices, wherein a pixel associated with a final index of the run is separated in the block from the initial pixel associated with the initial index of the second plurality of palette indices by at least one pixel; copying the first plurality of indices included in the run as the second plurality of palette indices; and decoding, using the palette, the second plurality of pixels associated with the copied second plurality of palette indices. determining a palette for decoding a block of video data based on information received in a bitstream, wherein the palette includes one or more palette entries each having a respective palette index; determining a first plurality of palette indices with which a first plurality of pixels of the block of video data are associated based on information received in the bitstream; determining a palette-based coding mode with which a second plurality of pixels of the block of video data is to be decoded based on information received in the bitstream, the palette-based coding mode being a copy-from-previous-rows palette coding mode; determining, using the copy-from-previous-rows palette coding mode, a second plurality of palette indices with which the second plurality of pixels of the block of video data are associated based on the first plurality of palette indices, wherein determining the second plurality of palette indices using the copy-from-previous-rows palette coding mode comprises: determining a reference pixel associated with a reference palette index included in the first plurality of palette indices based on information received in the bitstream, the information received in the bitstream including a syntax element indicative of the row of pixels within which the reference pixel is located, wherein the reference pixel associated with the reference palette index is spaced at least one line from an initial pixel associated with an initial index of the second plurality of palette indices such that the reference pixel associated with the reference palette index is positioned at least two lines above the initial pixel associated with the initial index of the second plurality of palette indices; determining a run length of a run of the first plurality of indices, wherein a pixel associated with a final index of the run is separated in the block from the initial pixel associated with the initial index of the second plurality of palette indices by at least one pixel; copying the first plurality of indices included in the run as the second plurality of palette indices; and determining a reference pixel associated with a reference palette index included in the first plurality of palette indices based on information received in the bitstream, the information received in the bitstream including a syntax element indicative of the row of pixels within which the reference pixel is located, wherein the reference pixel associated with the reference palette index is spaced at least one line from an initial pixel associated with an initial index of the second plurality of palette indices such that the reference pixel associated with the reference palette index is positioned at least two lines above the initial pixel associated with the initial index of the second plurality of palette indices; determining a run length of a run of the first plurality of indices, wherein a pixel associated with a final index of the run is separated in the block from the initial pixel associated with the initial index of the second plurality of palette indices by at least one pixel; copying the first plurality of indices included in the run as the second plurality of palette indices; and decoding, using the palette, the second plurality of pixels associated with the copied second plurality of palette indices.