summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluigi-liu <luigi.liu@laposte.net>2014-08-23 05:44:27 +0800
committerluigi-liu <luigi.liu@laposte.net>2014-08-23 05:44:27 +0800
commitc67b38712c02c25cb997df7a7b998203a2c6f9b4 (patch)
tree0cf5f74fb82ec73ae4d68b8ec7096522befceb7f
parentd99d238b55887c332dc34d4e3c80c22e11745440 (diff)
downloadODR-AudioEnc-c67b38712c02c25cb997df7a7b998203a2c6f9b4.tar.gz
ODR-AudioEnc-c67b38712c02c25cb997df7a7b998203a2c6f9b4.tar.bz2
ODR-AudioEnc-c67b38712c02c25cb997df7a7b998203a2c6f9b4.zip
Update mot-encoder.cpp
1. apply the default sleepdelay between each slide 2. confine maximum DLS length to the specification. 3. avoid increasing constantly Transport ID
-rw-r--r--src/mot-encoder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp
index fc60f62..2b73c10 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -56,7 +56,7 @@ extern "C" {
#define STR(x) XSTR(x)
#define MAXSEGLEN 8179
-#define MAXDLS 129
+#define MAXDLS 128 // limit defined in ETSI TS 102 980
#define MAXSLIDESIZE 50000
// Do not allow the image compressor to go below
@@ -181,7 +181,7 @@ int main(int argc, char *argv[])
DIR *pDir = NULL;
int padlen = 58;
bool erase_after_tx = false;
- int sleepdelay = 10;
+ int sleepdelay = SLEEPDELAY_DEFAULT; // apply the default delay
const char* dir = NULL;
const char* output = "/tmp/pad.fifo";
@@ -334,6 +334,7 @@ int main(int argc, char *argv[])
}
slides_to_transmit.resize(0);
+ fidx = 0; // avoid increasing constantly TID
}
else if (dls_file) { // only DLS
// Always retransmit DLS, we want it to be updated frequently