summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;