hevc: Add max_sub_layers to HEVCSPS to simplify setting has_b_frames.