aboutsummaryrefslogtreecommitdiffstats
path: root/src/mot-encoder.cpp
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2015-04-14 21:53:48 +0200
committerStefan Pöschel <github@basicmaster.de>2015-04-14 21:53:48 +0200
commitf45080e7914dd8eb7c0e46638894d3c3a9c96efb (patch)
tree70616eeacf14761c1684ea712837e3f2f3c1d818 /src/mot-encoder.cpp
parentc0798f8fa04a30b96dfe48e91a471f1f75c8b415 (diff)
downloadODR-PadEnc-f45080e7914dd8eb7c0e46638894d3c3a9c96efb.tar.gz
ODR-PadEnc-f45080e7914dd8eb7c0e46638894d3c3a9c96efb.tar.bz2
ODR-PadEnc-f45080e7914dd8eb7c0e46638894d3c3a9c96efb.zip
Fix corrupt Slideshow at 23 byte PAD
Due to a bug, at 23 byte PAD size, 13 instead of 12 bytes of data were output in the first data group. This lead to invalid CRC at the receiver.
Diffstat (limited to 'src/mot-encoder.cpp')
-rw-r--r--src/mot-encoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp
index 0c39556..0d8d8d6 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -1078,7 +1078,7 @@ void writeMotPAD(int output_fd,
if (i == 0) { // First segment
firstseg = 1;
- curseglen = padlen-10;
+ curseglen = get_xpadlength(xpadlengthmask);
// size of first X-PAD = MSC-DG + DGLI-DG + End of CI list + 2x CI = size of subsequent non-CI X-PADs
non_ci_seglen = curseglen + 4 + 1 + 2;