hevc: add checks