From 57b61faaa558fc5d956f464907d8bfa97b0c2067 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 1 Apr 2016 11:37:54 +0200 Subject: Fix libtoolame-dab buffer init in mono --- src/dabplus-enc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp index 4d0db0b..95e5f38 100644 --- a/src/dabplus-enc.cpp +++ b/src/dabplus-enc.cpp @@ -682,7 +682,7 @@ int main(int argc, char *argv[]) return err; } - input_buf.resize(2 * 1152 * BYTES_PER_SAMPLE); + input_buf.resize(channels * 1152 * BYTES_PER_SAMPLE); } /* We assume that we need to call the encoder -- cgit v1.2.3