summaryrefslogtreecommitdiffstats
path: root/src/odr-audioenc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/odr-audioenc.cpp')
-rw-r--r--src/odr-audioenc.cpp9
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);
}