(HEVC) : array out of bound fixes