hevc: code cleaning