diff options
author | Stefan Pöschel <github@basicmaster.de> | 2015-04-18 18:28:54 +0200 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2015-04-18 18:28:54 +0200 |
commit | 90518e0ca2386a98b7e6950567dc8816dd455126 (patch) | |
tree | 5a080abc484f8ef1894988f5c6736edaac61e4e2 /src/dabplus-enc.cpp | |
parent | b1cf5b2ee9d6d17a61a16996029931ea1d622abc (diff) | |
download | ODR-AudioEnc-90518e0ca2386a98b7e6950567dc8816dd455126.tar.gz ODR-AudioEnc-90518e0ca2386a98b7e6950567dc8816dd455126.tar.bz2 ODR-AudioEnc-90518e0ca2386a98b7e6950567dc8816dd455126.zip |
PAD: use announced PAD len for buffer
Diffstat (limited to 'src/dabplus-enc.cpp')
-rw-r--r-- | src/dabplus-enc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp index 3fdb852..7ab23d1 100644 --- a/src/dabplus-enc.cpp +++ b/src/dabplus-enc.cpp @@ -277,7 +277,6 @@ int main(int argc, char *argv[]) /* For MOT Slideshow and DLS insertion */ const char* pad_fifo = "/tmp/pad.fifo"; int pad_fd; - unsigned char pad_buf[128]; int padlen = 0; /* Encoder status, see the above STATUS macros */ @@ -625,6 +624,8 @@ int main(int argc, char *argv[]) uint8_t outbuf[24*120]; + unsigned char pad_buf[padlen]; + if(outbuf_size % 5 != 0) { fprintf(stderr, "(outbuf_size mod 5) = %d\n", outbuf_size % 5); } |