From 2cf0f260ec3ed26035840ea5c956aed96e7a5853 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Tue, 14 Apr 2015 21:53:48 +0200 Subject: 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. --- src/mot-encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mot-encoder.cpp') 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; -- cgit v1.2.3