A decoder may receive, from a bitstream for a block, an indication of a first bit depth, a residual block of samples of the first bit depth, and a prediction parameter. The decoder may receive, from the bitstream for a sequence, an indication of a second bit depth. The decoder may determine a first decoded block of samples of the first bit depth based on the first bit depth, the residual block of samples of the first bit depth, and the prediction parameter. The decoder may determine a second decoded block of samples of the second bit depth based on the first decoded block of samples of the first bit depth.