This function is independent of the decoding context, so we'll be able to use it in the parser.
It will be useful in the QSV HEVC encoder.