diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-03-25 19:56:03 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-03-25 19:56:03 +0100 |
commit | 12f130a487a0119fa9f9fa2da33e0ab19b54cdda (patch) | |
tree | e3ffdfc64f0a26bb0d7243671e3d55dce4f715e6 /src | |
parent | 9a5392cf819e18ec5113d2864d62385dcfff2b45 (diff) | |
download | dabmux-12f130a487a0119fa9f9fa2da33e0ab19b54cdda.tar.gz dabmux-12f130a487a0119fa9f9fa2da33e0ab19b54cdda.tar.bz2 dabmux-12f130a487a0119fa9f9fa2da33e0ab19b54cdda.zip |
Fix correct FIG0/13 encoding
Diffstat (limited to 'src')
-rw-r--r-- | src/DabMux.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp index ebbc786..5baad39 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -1523,7 +1523,7 @@ int main(int argc, char *argv[]) FIG0_13_shortAppInfo* info = (FIG0_13_shortAppInfo*)&etiFrame[index]; - info->SId = htonl((*componentFIG0_13)->serviceId); + info->SId = htonl((*componentFIG0_13)->serviceId) >> 16; info->SCIdS = (*componentFIG0_13)->SCIdS; info->No = 1; index += 3; @@ -1533,13 +1533,13 @@ int main(int argc, char *argv[]) FIG0_13_app* app = (FIG0_13_app*)&etiFrame[index]; app->setType(FIG0_13_APPTYPE_SLIDESHOW); app->length = 4; - app->xpad = 0x0cbc0000; + app->xpad = htonl(0x0cbc0000); /* xpad meaning CA = 0 CAOrg = 0 Rfu = 0 AppTy(5) = 12 (MOT, start of X-PAD data group) - DG = 1 (MSC data groups not used) + DG = 0 (MSC data groups used) Rfu = 0 DSCTy(6) = 60 (MOT) CAOrg(16) = 0 |