1. A method of decoding video data, the method comprising: determining values for coded sub-block flags of one or more neighboring sub-blocks to a current sub-block; determining a context for decoding a transform coefficient of the current sub-block based on the values for the coded sub-block flags; and entropy decoding the transform coefficient using the determined context.