diff options
author | Stefan Pöschel <github@basicmaster.de> | 2017-08-07 23:06:20 +0200 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2017-08-07 23:06:27 +0200 |
commit | ce25f2c7327b2257e14b8f92c69e19d92ebcef7d (patch) | |
tree | 0596eb63d43ce7a81fc70bccc20a4742f5ff8813 /src/odr-audioenc.cpp | |
parent | f0d5d85074cd696b5653c6924fbe2281dea05e41 (diff) | |
download | ODR-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 'src/odr-audioenc.cpp')
-rw-r--r-- | src/odr-audioenc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp index ca4faec..14666a5 100644 --- a/src/odr-audioenc.cpp +++ b/src/odr-audioenc.cpp @@ -1207,9 +1207,9 @@ int main(int argc, char *argv[]) int calculated_padlen = 0; if (pad_ret == padlen + 1) { calculated_padlen = pad_buf[padlen]; - if (calculated_padlen <= 2) { + if (calculated_padlen < 2) { stringstream ss; - ss << "Invalid XPAD Length " << calculated_padlen; + ss << "Invalid X-PAD length " << calculated_padlen; throw runtime_error(ss.str()); } } |