aboutsummaryrefslogtreecommitdiffstats
path: root/src/fig/FIG1.cpp
diff options
context:
space:
mode:
authorKuntzeM <github@kuntze.email>2019-02-11 16:26:54 +0100
committerKuntzeM <github@kuntze.email>2019-02-11 16:26:54 +0100
commit7eb97a486a8a39ef3986b9c2c7c452e9ccf2693a (patch)
tree40cc6ec46894fe37b754f81c31783c0c08bde2b2 /src/fig/FIG1.cpp
parenta8cc30be9589280d9bde3ddaf676610c9b12af2a (diff)
downloaddabmux-7eb97a486a8a39ef3986b9c2c7c452e9ccf2693a.tar.gz
dabmux-7eb97a486a8a39ef3986b9c2c7c452e9ccf2693a.tar.bz2
dabmux-7eb97a486a8a39ef3986b9c2c7c452e9ccf2693a.zip
fixed bug DAB with protection level EEP_A 1-4
Diffstat (limited to 'src/fig/FIG1.cpp')
-rw-r--r--src/fig/FIG1.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fig/FIG1.cpp b/src/fig/FIG1.cpp
index 8f41239..dd1e70b 100644
--- a/src/fig/FIG1.cpp
+++ b/src/fig/FIG1.cpp
@@ -90,7 +90,7 @@ FillStatus FIG1_1::fill(uint8_t *buf, size_t max_size)
break;
}
- if ((*service)->getType(ensemble) == subchannel_type_t::Audio) {
+ if ((*service)->getType(ensemble) == subchannel_type_t::DABPlusAudio || (*service)->getType(ensemble) == subchannel_type_t::DABAudio) {
auto fig1_1 = (FIGtype1_1 *)buf;
fig1_1->FIGtypeNumber = 1;
@@ -149,7 +149,7 @@ FillStatus FIG1_4::fill(uint8_t *buf, size_t max_size)
* a label, which is forbidden since V2.1.1 */
if (not (*component)->label.long_label().empty() ) {
- if ((*service)->getType(ensemble) == subchannel_type_t::Audio) {
+ if ((*service)->getType(ensemble) == subchannel_type_t::DABPlusAudio || (*service)->getType(ensemble) == subchannel_type_t::DABAudio) {
if (remaining < 5 + 16 + 2) {
break;
@@ -237,7 +237,7 @@ FillStatus FIG1_5::fill(uint8_t *buf, size_t max_size)
break;
}
- if ((*service)->getType(ensemble) != subchannel_type_t::Audio) {
+ if ((*service)->getType(ensemble) == subchannel_type_t::DABPlusAudio || (*service)->getType(ensemble) == subchannel_type_t::DABAudio) {
auto fig1_5 = (FIGtype1_5 *)buf;
fig1_5->FIGtypeNumber = 1;
fig1_5->Length = 23;