aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/edi/PFT.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-08-21 10:08:51 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-08-21 10:08:51 +0200
commitfa5f92318e7cc08ac872be18d47387cf83c23cd0 (patch)
tree118b12cf95b478fd20916f745c0d1a7873e16040 /contrib/edi/PFT.cpp
parent781c2c69c62a434bed64ff3cfa6d009ed3c479c1 (diff)
downloadODR-AudioEnc-fa5f92318e7cc08ac872be18d47387cf83c23cd0.tar.gz
ODR-AudioEnc-fa5f92318e7cc08ac872be18d47387cf83c23cd0.tar.bz2
ODR-AudioEnc-fa5f92318e7cc08ac872be18d47387cf83c23cd0.zip
Add tist support for EDI output, take code from odr-mmbtools-common
Diffstat (limited to 'contrib/edi/PFT.cpp')
-rw-r--r--contrib/edi/PFT.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/contrib/edi/PFT.cpp b/contrib/edi/PFT.cpp
index 0692914..371d36f 100644
--- a/contrib/edi/PFT.cpp
+++ b/contrib/edi/PFT.cpp
@@ -14,34 +14,34 @@
*/
/*
- This file is part of ODR-DabMux.
+ This file is part of the ODR-mmbTools.
- ODR-DabMux is free software: you can redistribute it and/or modify
+ This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
- ODR-DabMux is distributed in the hope that it will be useful,
+ This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with ODR-DabMux. If not, see <http://www.gnu.org/licenses/>.
- */
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
#include "config.h"
#include <vector>
#include <list>
#include <cstdio>
#include <cstring>
-#include <stdint.h>
+#include <cstdint>
#include <arpa/inet.h>
#include <stdexcept>
#include <sstream>
-#include <iostream>
-#include "edi/PFT.h"
+#include "PFT.h"
#include "crc.h"
+#include "ReedSolomon.h"
namespace edi {
@@ -61,13 +61,15 @@ PFT::PFT(const configuration_t &conf) :
m_verbose(conf.verbose)
{
if (m_k > 207) {
+ etiLog.level(warn) <<
+ "EDI PFT: maximum chunk size is 207.";
throw std::out_of_range("EDI PFT Chunk size too large.");
}
if (m_m > 5) {
- clog <<
+ etiLog.level(warn) <<
"EDI PFT: high number of recoverable fragments"
- " may lead to large overhead" << endl;
+ " may lead to large overhead";
// See TS 102 821, 7.2.1 Known values, list entry for 'm'
}
}