From ceb01462fa3a9a3b82e3c0b8988d06406b2c7f72 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 17 May 2014 17:42:07 +0200 Subject: fix subchannel to tag map --- src/DabMux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3