diff options
author | Stefan Pöschel <github@basicmaster.de> | 2017-05-25 16:22:36 +0200 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2017-05-25 16:22:39 +0200 |
commit | b5d2bf1b4c371e1238419f5a4bca45bba7a9d7e9 (patch) | |
tree | 7fa0910be3ab4f42036e8687a829f95e0f88bd6c | |
parent | bf2ed32e63b2f4d5ae0e4e3c1b8401bb7c03ec12 (diff) | |
download | ODR-AudioEnc-b5d2bf1b4c371e1238419f5a4bca45bba7a9d7e9.tar.gz ODR-AudioEnc-b5d2bf1b4c371e1238419f5a4bca45bba7a9d7e9.tar.bz2 ODR-AudioEnc-b5d2bf1b4c371e1238419f5a4bca45bba7a9d7e9.zip |
Fix PAD insertion for MP2 Mono 56-96 kbps
Since merging toolame-dab into ODR-AudioEnc, for MP2 Mono services with
a bitrate between 56 and 96 kbps, only two ScF-CRC bytes were aligned
although there shall be four.
-rw-r--r-- | src/odr-audioenc.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp index 4da3419..724d09e 100644 --- a/src/odr-audioenc.cpp +++ b/src/odr-audioenc.cpp @@ -776,10 +776,6 @@ int main(int argc, char *argv[]) } if (err == 0) { - err = toolame_set_bitrate(bitrate); - } - - if (err == 0) { err = toolame_set_psy_model(dab_psy_model); } @@ -800,6 +796,11 @@ int main(int argc, char *argv[]) err = toolame_set_channel_mode(dab_channel_mode); } + // setting the ScF-CRC len here depends on set sample rate/channel mode + if (err == 0) { + err = toolame_set_bitrate(bitrate); + } + if (err == 0) { err = toolame_set_pad(padlen); } |