summaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp.patch
blob: a6057c9790efb777168140b4773dcd316b5203dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
+++ DabMux.cpp	2014-02-27 17:56:41.108646157 +0100
--- DabMux.cpp.orig	2014-02-27 17:56:01.080447673 +0100
@@ -616,8 +616,6 @@
         typeHigh = type >> 3;
         typeLow = type & 0x1f;
     }
+    //CSP - SERGIO
+    uint32_t xpad;
 } PACKED;
 
 
@@ -2060,14 +2058,12 @@
                 returnCode = -1;
                 goto EXIT;
             }
+            /* CSP - SERGIO
             if (!(*component)->isPacketComponent(ensemble->subchannels)) {
                 etiLog.printHeader(TcpLog::ERR, "application type\n");
                 printUsage(progName);
                 returnCode = -1;
                 goto EXIT;
             }
+            */
             (*component)->packet.appType = strtoul(optarg, NULL, 0);
             break;
         case 'g':
@@ -3210,7 +3206,7 @@
                     goto EXIT;
                 }
 
+                // CSP - SERGIO if ((*subchannel)->type != 3) continue;
-                if ((*subchannel)->type != 3) continue;
 
                 if ((*component)->packet.appType != 0xffff) {
                     if (fig0 == NULL) {
@@ -3236,18 +3232,10 @@
 
                     FIG0_13_app* app = (FIG0_13_app*)&etiFrame[index];
                     app->setType((*component)->packet.appType);
+                    // CSP - SERGIO app->length = 0;
+                    app->length = 4;
+                    app->xpad = 0x0cbc0000;
+
+
+                    //index += 2;
+                    //figSize += 2;
+                    //fig0->Length += 2;
+
+                    index += 6;
+                    figSize += 6;
+                    fig0->Length += 6;
-                    app->length = 0;
-                    index += 2;
-                    figSize += 2;
-                    fig0->Length += 2;
 
                     if (figSize > 30) {
                         etiLog.printHeader(TcpLog::ERR,