aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index 275175b..734643c 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -354,6 +354,10 @@ int main(int argc, char *argv[])
global_stats = new StatsServer();
}
+ if (rc) {
+ ensemble->enrol_at(*rc);
+ }
+
etiLog.level(info) <<
PACKAGE_NAME << " " <<
@@ -1627,7 +1631,13 @@ int main(int argc, char *argv[])
fig0_9->ext = 0;
fig0_9->lto = 0; // Unique LTO for ensemble
- fig0_9->ensembleLto = ensemble->lto;
+ if (ensemble->lto >= 0) {
+ fig0_9->ensembleLto = ensemble->lto;
+ }
+ else {
+ /* Convert to 1-complement representation */
+ fig0_9->ensembleLto = (-ensemble->lto) | (1<<5);
+ }
fig0_9->ensembleEcc = ensemble->ecc;
fig0_9->tableId = ensemble->international_table;
index += 5;