Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
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.