diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-23 17:51:03 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-23 17:51:06 +0100 |
commit | e473f5183a1146d76940e9bfe7e3d76bbfe7baca (patch) | |
tree | 8c6cfcb5e1b518720d64d92e4670c2bf2cb79885 /src/dabOutput/edi/PFT.cpp | |
parent | ac6fff2d6d514c4b4d72088114c1f2e42c5968cd (diff) | |
download | dabmux-e473f5183a1146d76940e9bfe7e3d76bbfe7baca.tar.gz dabmux-e473f5183a1146d76940e9bfe7e3d76bbfe7baca.tar.bz2 dabmux-e473f5183a1146d76940e9bfe7e3d76bbfe7baca.zip |
Remove useless creation of AFPacketiser and update some comments
Diffstat (limited to 'src/dabOutput/edi/PFT.cpp')
-rw-r--r-- | src/dabOutput/edi/PFT.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/dabOutput/edi/PFT.cpp b/src/dabOutput/edi/PFT.cpp index 6bed4c1..62b9f98 100644 --- a/src/dabOutput/edi/PFT.cpp +++ b/src/dabOutput/edi/PFT.cpp @@ -1,6 +1,8 @@ /* - Copyright (C) 2013,2014 Matthias P. Braendli - http://mpb.li + Copyright (C) 2014 + Matthias P. Braendli, matthias.braendli@mpb.li + + http://www.opendigitalradio.org EDI output, Protection, Fragmentation and Transport. (PFT) @@ -76,7 +78,7 @@ RSBlock PFT::Protect(AFPacket af_packet) // Create the RS(k+p,k) encoder const int firstRoot = 1; // Discovered by analysing EDI dump const int gfPoly = 0x11d; - const bool reverse = 0; + const bool reverse = false; // The encoding has to be 255, 207 always, because the chunk has to // be padded at the end, and not at the beginning as libfec would // do @@ -218,9 +220,7 @@ std::vector< PFTFragment > PFT::Assemble(AFPacket af_packet) const size_t zero_pad = enable_RS ? m_num_chunks * chunk_len - af_packet.size() : 0; - for (size_t i = 0; i < fragments.size(); i++) { - const vector<uint8_t>& fragment = fragments[i]; - + for (const auto &fragment : fragments) { // Psync std::string psync("PF"); std::vector<uint8_t> packet(psync.begin(), psync.end()); |