segment_setTable(): fix possible integer overflows on invalid input
segment_setTable(): fix possible integer overflows on invalid input

ShiftMediaProject/libbdplus,ShiftMediaProject/libbdplus,ShiftMediaProject/libbdplus