diff options
-rw-r--r-- | doc/advanced.mux | 3 | ||||
-rw-r--r-- | src/DabMux.cpp | 13 |
2 files changed, 10 insertions, 6 deletions
diff --git a/doc/advanced.mux b/doc/advanced.mux index 33d29b5..b7ff69e 100644 --- a/doc/advanced.mux +++ b/doc/advanced.mux @@ -430,6 +430,9 @@ outputs { ; PFT is not necessary when using TCP. enable_pft false + enable_transport_addressing true + ; Enables the Addr flag in PFT and sets Source and Dest fields. + ; How many lost fragments can be recovered by Reed-Solomon. ; Requires enable_pft true. ; diff --git a/src/DabMux.cpp b/src/DabMux.cpp index c4fb692..4ae607c 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -354,14 +354,15 @@ int main(int argc, char *argv[]) edi_conf.dest_port = pt_edi.get<unsigned int>("port"); } - edi_conf.dump = pt_edi.get<bool>("dump", false); - edi_conf.enable_pft = pt_edi.get<bool>("enable_pft", false); - edi_conf.verbose = pt_edi.get<bool>("verbose", false); + edi_conf.dump = pt_edi.get<bool>("dump", false); + edi_conf.enable_pft = pt_edi.get<bool>("enable_pft", false); + edi_conf.verbose = pt_edi.get<bool>("verbose", false); + edi_conf.enable_transport_header = pt_edi.get<bool>("enable_transport_addressing", true); - edi_conf.fec = pt_edi.get<unsigned int>("fec", 3); - edi_conf.chunk_len = pt_edi.get<unsigned int>("chunk_len", 207); + edi_conf.fec = pt_edi.get<unsigned int>("fec", 3); + edi_conf.chunk_len = pt_edi.get<unsigned int>("chunk_len", 207); - double interleave_ms = pt_edi.get<double>("interleave", 0); + double interleave_ms = pt_edi.get<double>("interleave", 0); if (interleave_ms != 0.0) { if (interleave_ms < 0) { throw runtime_error("EDI output: negative interleave value is invalid."); |