summaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-01 11:03:38 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-08-01 11:03:38 +0200
commit47033e0ba1377cee310490587b87490249d9b510 (patch)
tree281fbe2215b4479a551b40b6b150c768821e0736 /src/DabMux.cpp
parentaa84bda648f5b74625e3a54ea98788f49481beba (diff)
downloaddabmux-47033e0ba1377cee310490587b87490249d9b510.tar.gz
dabmux-47033e0ba1377cee310490587b87490249d9b510.tar.bz2
dabmux-47033e0ba1377cee310490587b87490249d9b510.zip
Add option to pad TAGPacket in different ways
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index 854c311..04aed2b 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -321,18 +321,20 @@ int main(int argc, char *argv[])
#if HAVE_OUTPUT_EDI
ptree pt_edi = pt_outputs.get_child("edi");
- edi_conf.enabled = true;
+ edi_conf.enabled = true;
- edi_conf.dest_addr = pt_edi.get<string>("destination");
- edi_conf.dest_port = pt_edi.get<unsigned int>("port");
- edi_conf.source_port = pt_edi.get<unsigned int>("sourceport");
+ edi_conf.dest_addr = pt_edi.get<string>("destination");
+ edi_conf.dest_port = pt_edi.get<unsigned int>("port");
+ edi_conf.source_port = pt_edi.get<unsigned int>("sourceport");
- edi_conf.dump = pt_edi.get<bool>("dump");
- edi_conf.enable_pft = pt_edi.get<bool>("enable_pft");
- edi_conf.verbose = pt_edi.get<bool>("verbose");
+ edi_conf.dump = pt_edi.get<bool>("dump");
+ edi_conf.enable_pft = pt_edi.get<bool>("enable_pft");
+ edi_conf.verbose = pt_edi.get<bool>("verbose");
- edi_conf.fec = pt_edi.get<unsigned int>("fec");
- 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);
+
+ edi_conf.tagpacket_alignment = pt_edi.get<unsigned int>("tagpacket_alignment", 8);
mux.set_edi_config(edi_conf);
#else