From 3342f01f9a0e6f1effc7a698208a072d4a120ff8 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 3 Oct 2016 21:29:29 +0200 Subject: Fix byte order in FIG0/6 structures --- src/fig/FIG0_6.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/fig/FIG0_6.cpp') diff --git a/src/fig/FIG0_6.cpp b/src/fig/FIG0_6.cpp index 20fe78b..7c09078 100644 --- a/src/fig/FIG0_6.cpp +++ b/src/fig/FIG0_6.cpp @@ -87,7 +87,7 @@ FillStatus FIG0_6::fill(uint8_t *buf, size_t max_size) fig0_6->LA = linkageSetFIG0_6->active; fig0_6->SH = linkageSetFIG0_6->hard; fig0_6->ILS = ILS; - fig0_6->LSN = linkageSetFIG0_6->lsn; + fig0_6->setLSN(linkageSetFIG0_6->lsn); fig0->Length += sizeof(struct FIGtype0_6); buf += sizeof(struct FIGtype0_6); @@ -125,7 +125,6 @@ FillStatus FIG0_6::fill(uint8_t *buf, size_t max_size) buf += headersize; remaining -= headersize; - // TODO insert key service first const std::string keyserviceuid = linkageSetFIG0_6->keyservice; const auto& keyservice = std::find_if( ensemble->services.begin(), @@ -208,6 +207,8 @@ void FIG0_6::update() { linkageSubsets.clear(); + // TODO check if AMSS and DRM have to be put into a single subset + for (const auto& linkageset : m_rti->ensemble->linkagesets) { const auto lsn = linkageset->data.lsn; -- cgit v1.2.3