aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-17 17:42:07 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-20 21:39:37 +0200
commitceb01462fa3a9a3b82e3c0b8988d06406b2c7f72 (patch)
treec94bd72c9e2e5de2bac8bf13fc3696ff85b04c35
parent17f55e50e156c2d4c630cc7e18b1dedc88d78257 (diff)
downloaddabmux-ceb01462fa3a9a3b82e3c0b8988d06406b2c7f72.tar.gz
dabmux-ceb01462fa3a9a3b82e3c0b8988d06406b2c7f72.tar.bz2
dabmux-ceb01462fa3a9a3b82e3c0b8988d06406b2c7f72.zip
fix subchannel to tag map
-rw-r--r--src/DabMux.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index b8c3fb6..da49cbb 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -753,7 +753,7 @@ int main(int argc, char *argv[])
/******* Section STC **************************************************/
// Stream Characterization,
// number of channel * 4 octets = nb octets total
- int edi_stream_id = 0;
+ int edi_stream_id = 1;
for (subchannel = ensemble->subchannels.begin();
subchannel != ensemble->subchannels.end();
++subchannel) {
@@ -785,7 +785,7 @@ int main(int argc, char *argv[])
assert(getSizeByte(*subchannel) % 8 == 0);
edi_subchannels.push_back(tag_ESTn);
- edi_subchannelToTag[*subchannel] = &tag_ESTn;
+ edi_subchannelToTag[*subchannel] = &edi_subchannels.back();
index += 4;
}