fix const-ness of slice_segment_header in read_slice_segment_data()