diff options
author | luigi-liu <luigi.liu@laposte.net> | 2014-08-23 05:44:27 +0800 |
---|---|---|
committer | luigi-liu <luigi.liu@laposte.net> | 2014-08-23 05:44:27 +0800 |
commit | 712178997071b08a6aee40ef148830766e0f7472 (patch) | |
tree | f6068ebbe2ae95638228e9cf492319c23eaa7f23 /src/mot-encoder.cpp | |
parent | 1df6f9d1cafdb80bd6c78ceae1056bd83089ce0d (diff) | |
download | ODR-PadEnc-712178997071b08a6aee40ef148830766e0f7472.tar.gz ODR-PadEnc-712178997071b08a6aee40ef148830766e0f7472.tar.bz2 ODR-PadEnc-712178997071b08a6aee40ef148830766e0f7472.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
Diffstat (limited to 'src/mot-encoder.cpp')
-rw-r--r-- | src/mot-encoder.cpp | 5 |
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 |