summaryrefslogtreecommitdiffstats
path: root/src/mot-encoder.cpp
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2015-04-18 18:28:54 +0200
committerStefan Pöschel <github@basicmaster.de>2015-04-18 18:28:54 +0200
commit90518e0ca2386a98b7e6950567dc8816dd455126 (patch)
tree5a080abc484f8ef1894988f5c6736edaac61e4e2 /src/mot-encoder.cpp
parentb1cf5b2ee9d6d17a61a16996029931ea1d622abc (diff)
downloadODR-AudioEnc-90518e0ca2386a98b7e6950567dc8816dd455126.tar.gz
ODR-AudioEnc-90518e0ca2386a98b7e6950567dc8816dd455126.tar.bz2
ODR-AudioEnc-90518e0ca2386a98b7e6950567dc8816dd455126.zip
PAD: use announced PAD len for buffer
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 ea1e230..bc5b736 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -1062,7 +1062,7 @@ void writeMotPAD(int output_fd,
unsigned short int padlen)
{
- unsigned char pad[128];
+ unsigned char pad[padlen];
int xpadlengthmask, i, j, k;
unsigned short int crc;