summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}