aboutsummaryrefslogtreecommitdiffstats
path: root/libtoolame-dab/toolame.c
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2017-08-07 23:06:20 +0200
committerStefan Pöschel <github@basicmaster.de>2017-08-07 23:06:27 +0200
commitce25f2c7327b2257e14b8f92c69e19d92ebcef7d (patch)
tree0596eb63d43ce7a81fc70bccc20a4742f5ff8813 /libtoolame-dab/toolame.c
parentf0d5d85074cd696b5653c6924fbe2281dea05e41 (diff)
downloadODR-AudioEnc-ce25f2c7327b2257e14b8f92c69e19d92ebcef7d.tar.gz
ODR-AudioEnc-ce25f2c7327b2257e14b8f92c69e19d92ebcef7d.tar.bz2
ODR-AudioEnc-ce25f2c7327b2257e14b8f92c69e19d92ebcef7d.zip
MP2: fix PAD with only F-PAD
When the PAD contains only F-PAD (and no X-PAD), this lead to a crash in the MP2 encoder.
Diffstat (limited to 'libtoolame-dab/toolame.c')
-rw-r--r--libtoolame-dab/toolame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtoolame-dab/toolame.c b/libtoolame-dab/toolame.c
index b8a7afb..4e0c7d8 100644
--- a/libtoolame-dab/toolame.c
+++ b/libtoolame-dab/toolame.c
@@ -522,7 +522,7 @@ int toolame_encode_frame(
if (xpad_len) {
- assert(xpad_len > 2);
+ assert(xpad_len >= FPAD_LENGTH);
// insert available X-PAD
for (int i = header.dab_length - xpad_len;